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.2.2.2 -r1.2.2.3 --- openacs-4/packages/forums/lib/search/search-chunk.tcl 20 Nov 2006 20:00:25 -0000 1.2.2.2 +++ openacs-4/packages/forums/lib/search/search-chunk.tcl 22 Nov 2006 10:03:20 -0000 1.2.2.3 @@ -6,7 +6,6 @@ } set package_id [ad_conn package_id] -set useScreenNameP [parameter::get -parameter "UseScreenNameP" -default 0] set searchbox_p [parameter::get -parameter ForumsSearchBoxP -package_id $package_id -default 1] if {$searchbox_p} { @@ -28,18 +27,11 @@ if { [parameter::get -parameter UseIntermediaForSearchP -default 0] } { append query "_intermedia" } - - if { $useScreenNameP == 1 } { - db_multirow -extend { screen_name } messages $query {} { - set posting_date_pretty [lc_time_fmt $posting_date_ansi "%x %X"] - set screen_name [db_string select_screen_name {select screen_name from users where user_id = :user_id}] - } - } else { - db_multirow messages $query {} { - set posting_date_pretty [lc_time_fmt $posting_date_ansi "%x %X"] - } - } - + + db_multirow messages $query {} { + set posting_date [lc_time_fmt $posting_date_ansi "%x %X"] + } + } else { set messages:rowcount 0 }