From: Brion Vibber Date: Sat, 2 Oct 2004 02:46:29 +0000 (+0000) Subject: * Fix notice & blank text on nogomatch X-Git-Tag: 1.5.0alpha1~1699 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=2b95fd398905ef9d7ceb654d80eae43ab4687873;p=lhc%2Fweb%2Fwiklou.git * Fix notice & blank text on nogomatch * Use Special:Search in the prevnext links --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 28424e21c4..baafe5cd13 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -229,7 +229,7 @@ class SearchEngine { $a2l .= "&{$ak}={$this->addToQuery[$ak]}" ; } - $prevnext = wfViewPrevNext( $offset, $limit, '', + $prevnext = wfViewPrevNext( $offset, $limit, 'Special:Search', 'search=' . wfUrlencode( $this->filteredText ) . $a2l ); $wgOut->addHTML( "
{$prevnext}\n" ); @@ -507,7 +507,7 @@ class SearchEngine { } else { $editurl = ''; # ?? } - $wgOut->addHTML( '

' . wfMsg('nogomatch', $editurl, htmlspecialchars( $search ) ) . "

\n" ); + $wgOut->addHTML( '

' . wfMsg('nogomatch', $editurl, htmlspecialchars( $this->rawText ) ) . "

\n" ); # Try a fuzzy title search $anyhit = false;