Index: openacs-4/packages/forums/sql/postgresql/upgrade/upgrade-1.1.2d4-1.1.2d5.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/sql/postgresql/upgrade/upgrade-1.1.2d4-1.1.2d5.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/forums/sql/postgresql/upgrade/upgrade-1.1.2d4-1.1.2d5.sql	8 Aug 2006 21:26:51 -0000	1.2
+++ openacs-4/packages/forums/sql/postgresql/upgrade/upgrade-1.1.2d4-1.1.2d5.sql	12 Aug 2013 09:34:30 -0000	1.3
@@ -28,23 +28,24 @@
 create function inline_0 ()
 returns integer as'
 begin
-  perform acs_privilege__remove_child(''read'',''forum_read'');
-  perform acs_privilege__remove_child(''create'',''forum_create'');
-  perform acs_privilege__remove_child(''write'',''forum_write'');
-  perform acs_privilege__remove_child(''delete'',''forum_delete'');
-  perform acs_privilege__remove_child(''forum_moderate'',''forum_read'');
-  perform acs_privilege__remove_child(''forum_moderate'',''forum_post'');
-  perform acs_privilege__remove_child(''forum_write'',''forum_read'');
-  perform acs_privilege__remove_child(''forum_write'',''forum_post'');
+  perform acs_privilege__remove_child('read','forum_read');
+  perform acs_privilege__remove_child('create','forum_create');
+  perform acs_privilege__remove_child('write','forum_write');
+  perform acs_privilege__remove_child('delete','forum_delete');
+  perform acs_privilege__remove_child('forum_moderate','forum_read');
+  perform acs_privilege__remove_child('forum_moderate','forum_post');
+  perform acs_privilege__remove_child('forum_write','forum_read');
+  perform acs_privilege__remove_child('forum_write','forum_post');
 
-  perform acs_privilege__drop_privilege(''forum_read'');
-  perform acs_privilege__drop_privilege(''forum_create'');
-  perform acs_privilege__drop_privilege(''forum_write'');
-  perform acs_privilege__drop_privilege(''forum_post'');
-  perform acs_privilege__drop_privilege(''forum_delete'');
+  perform acs_privilege__drop_privilege('forum_read');
+  perform acs_privilege__drop_privilege('forum_create');
+  perform acs_privilege__drop_privilege('forum_write');
+  perform acs_privilege__drop_privilege('forum_post');
+  perform acs_privilege__drop_privilege('forum_delete');
 
   return null;
-end;' language 'plpgsql';
+END;
+$$ LANGUAGE plpgsql;
 
 select inline_0();
 drop function inline_0();
