Fix #3431 : dont show next link when there is no more additional results.
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 4 May 2007 20:07:52 +0000 (20:07 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 4 May 2007 20:07:52 +0000 (20:07 +0000)
NOTE: Mysqlsearch do not give us the number of total results, so we are
not really sure if the show results are really the last ones.

RELEASE-NOTES
includes/SpecialSearch.php

index 0381fed..b2e648b 100644 (file)
@@ -32,6 +32,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 9670) Follow redirects when render edit section links to transcluded
   templates.
 * (bug 6204) Fix incorrect unindentation with $wgMaxTocLevel
+* (bug 3431) Special:Search: dont show 'next link' when there is nothing else
 
 == Maintenance script changes since 1.10 ==
 
index c347888..4e67469 100644 (file)
@@ -173,7 +173,8 @@ class SpecialSearch {
                                SpecialPage::getTitleFor( 'Search' ),
                                wfArrayToCGI(
                                        $this->powerSearchOptions(),
-                                       array( 'search' => $term ) ) );
+                                       array( 'search' => $term ) ),
+                                       ($num < $this->limit) );
                        $wgOut->addHTML( "<br />{$prevnext}\n" );
                }