Index: openacs-4/packages/forums/lib/search/search-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/lib/search/search-chunk.tcl,v diff -u -r1.13 -r1.14 --- openacs-4/packages/forums/lib/search/search-chunk.tcl 15 Jun 2018 20:55:28 -0000 1.13 +++ openacs-4/packages/forums/lib/search/search-chunk.tcl 26 Jun 2018 10:39:02 -0000 1.14 @@ -40,13 +40,14 @@ ad_page_contract_handle_datasource_error [_ acs-tcl.lt_name_is_not_an_intege] ad_script_abort } - + + set query "search_all_forums" if { [parameter::get -parameter UseIntermediaForSearchP -default 0] } { append query "_intermedia" } set search_pattern "%${search_text}%" - db_multirow -extend { author posting_date_pretty } messages search_all_forums {} { + db_multirow -extend { author posting_date_pretty } messages $query {} { set posting_date_pretty [lc_time_fmt $posting_date_ansi "%x %X"] set author [acs_user::get_element -user_id $user_id \ -element [expr {$useScreenNameP ? "screen_name" : "name"}]]