From 3a974cd851ed206c34bbe17e7e82ab43cd444d34 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 4 May 2007 20:07:52 +0000 Subject: [PATCH] Fix #3431 : dont show next link when there is no more additional results. 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 | 1 + includes/SpecialSearch.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0381fedc03..b2e648b408 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index c347888123..4e6746936c 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -173,7 +173,8 @@ class SpecialSearch { SpecialPage::getTitleFor( 'Search' ), wfArrayToCGI( $this->powerSearchOptions(), - array( 'search' => $term ) ) ); + array( 'search' => $term ) ), + ($num < $this->limit) ); $wgOut->addHTML( "
{$prevnext}\n" ); } -- 2.20.1