Index: openacs-4/packages/xowiki/www/admin/portal-element-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/portal-element-add.tcl,v diff -u -N -r1.14 -r1.14.2.1 --- openacs-4/packages/xowiki/www/admin/portal-element-add.tcl 13 Sep 2012 16:05:33 -0000 1.14 +++ openacs-4/packages/xowiki/www/admin/portal-element-add.tcl 11 Feb 2014 11:58:20 -0000 1.14.2.1 @@ -31,7 +31,7 @@ # for the time being, we add the portlet on the first page (page 0) set portal_page_id [portal::get_page_id -portal_id $portal_id -sort_key 0] - if {[db_string check_unique_name_on_page { + if {[xo::dc get_value check_unique_name_on_page { select 1 from portal_element_map where page_id = :portal_page_id and pretty_name = :page_title