Index: openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl,v diff -u -r1.31 -r1.32 --- openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl 13 Aug 2007 13:52:11 -0000 1.31 +++ openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl 16 Aug 2007 09:46:57 -0000 1.32 @@ -310,10 +310,10 @@ ::xowiki::Package initialize -package_id $package_id -init_url false # rename swf:name and image:name to file:name db_dml change_swf \ - "update cr_items set name = 'file' || substring(name,4) \ + "update cr_items set name = 'file' || substr(name,4) \ where name like 'swf:%' and parent_id = [$package_id folder_id]" db_dml change_image \ - "update cr_items set name = 'file' || substring(name,6) \ + "update cr_items set name = 'file' || substr(name,6) \ where name like 'image:%' and parent_id = [$package_id folder_id]" # reload updated prototype pages $package_id import_prototype_page book