$query .= ' ' . $ctx->{global_search_filter} if $ctx->{global_search_filter};
- foreach ($cgi->param('modifier')) {
- # The unless bit is to avoid stacking modifiers.
- $query = ('#' . $_ . ' ' . $query) unless $query =~ qr/\#\Q$_/;
- }
# filters
foreach (grep /^fi:/, $cgi->param) {
push @naive_query_re, $thing;
}
+ foreach ($cgi->param('modifier')) {
+ # The unless bit is to avoid stacking modifiers.
+ $query .= " #$_" unless $query =~ qr/\#\Q$_/;
+ }
+
# This gives templates a way to take site() and depth() back out of
# query strings when they shouldn't be there (because they're controllable
# with other widgets).