Skip to content

Commit

Permalink
Fixes for searches
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAker committed Apr 23, 2001
1 parent edd26e1 commit a0bb0e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion plugins/Search/Search.pm
Expand Up @@ -112,7 +112,7 @@ sub findUsers {
}

if ($form->{query}) {
$sql .= ' AND ' if @$users_to_ignore;
$sql .= ' AND ';
my $kw = $self->_keysearch($form->{query}, ['nickname', 'ifnull(fakeemail,"")']);
$kw =~ s/as kw$//;
$kw =~ s/\+/ OR /g;
Expand Down
2 changes: 2 additions & 0 deletions plugins/Search/search.pl
Expand Up @@ -118,6 +118,7 @@ sub commentSearch {
back => $back,
forward => $forward,
args => _buildargs($form),
start => $start,
});
}

Expand Down Expand Up @@ -192,6 +193,7 @@ sub storySearch {
back => $back,
forward => $forward,
args => _buildargs($form),
start => $start,
});
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/Search/templates/commentsearch;search;default
Expand Up @@ -16,7 +16,7 @@ __template__
each of the last 30,000 or so comments posted. Older comments
are removed and currently only visible as static HTML.<P>
[% IF comments %]
[% x = 0 %]
[% x = start ? start : 1 %]
[% FOREACH comment=comments %]
[% user_email = Slash.db.getUser(comment.9, ['fakeemail', 'nickname']) %]
<BR><B>[% x %]</B>
Expand Down
5 changes: 0 additions & 5 deletions plugins/Search/templates/pagination;search;default
Expand Up @@ -13,9 +13,6 @@ pagination
__template__
[% back = back || 0;
IF (back > -1) || forward %]
</TD></TR>
<TR VALIGN="TOP" BGCOLOR="#FFFFFF">
<TD ALIGN="RIGHT" BGCOLOR="#FFFFFF">
[% IF forward %]
<A HREF="[% constants.rootdir %]/search.pl?[% args %]&start=[% forward %]">&lt;Next [% constants.search_default_display %] matches</A>
[% END %]
Expand All @@ -25,8 +22,6 @@ __template__
[% IF (back > -1) %]
<A HREF="[% constants.rootdir %]/search.pl?[% args %]&start=[% back %]">Last [% constants.search_default_display %] matches&gt;</A>
[% END %]
</TD>
</TR>
[% END %]
__seclev__
100
2 changes: 1 addition & 1 deletion plugins/Search/templates/storysearch;search;default
Expand Up @@ -13,7 +13,7 @@ storysearch
__template__
[% USE Slash %]
[% IF stories %]
[% x = 0 %]
[% x = start ? start : 1 %]
[% FOREACH story=stories %]
[% x + form.min %]
[% Slash.linkStory({
Expand Down

0 comments on commit a0bb0e5

Please sign in to comment.