Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql,v
diff -u -r1.23 -r1.24
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql	17 Sep 2007 09:43:56 -0000	1.23
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-template.sql	4 Oct 2010 21:59:20 -0000	1.24
@@ -53,7 +53,7 @@
 begin
 
   if new__parent_id is null then
-    v_parent_id := content_template_globals.c_root_folder_id;
+    select c_root_folder_id into v_parent_id from content_template_globals;
   else
     v_parent_id := new__parent_id;
   end if;
@@ -133,7 +133,7 @@
 begin
 
   if new__parent_id is null then
-    v_parent_id := content_template_globals.c_root_folder_id;
+    select c_root_folder_id into v_parent_id from content_template_globals;
   else
     v_parent_id := new__parent_id;
   end if;
