Index: openacs-4/packages/dotlrn-faq/tcl/test/dotlrn-faq-test-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-faq/tcl/test/Attic/dotlrn-faq-test-procs.tcl,v diff -u -N -r1.1.2.4 -r1.1.2.5 --- openacs-4/packages/dotlrn-faq/tcl/test/dotlrn-faq-test-procs.tcl 2 Oct 2020 16:56:25 -0000 1.1.2.4 +++ openacs-4/packages/dotlrn-faq/tcl/test/dotlrn-faq-test-procs.tcl 25 Feb 2021 12:24:40 -0000 1.1.2.5 @@ -43,6 +43,7 @@ dotlrn_faq::add_portlet_helper dotlrn_faq::remove_portlet dotlrn_faq::remove_applet + portal::exists_p } -cats { api } dotlrn_faq__applet_portlet { @@ -76,10 +77,7 @@ # Create portal # set portal_id [portal::create $portal_user_id] - set portal_exists_p [db_0or1row foo { - select * from portals where portal_id=:portal_id - }] - if {$portal_exists_p} { + if {[portal::exists_p $portal_id]} { aa_log "Portal created (portal_id: $portal_id)" set applet_key [dotlrn_faq::applet_key] if {[dotlrn_applet::get_applet_id_from_key -applet_key $applet_key] ne ""} {