diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 68db80e1c5b..b7901adb936 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -71,7 +71,10 @@ class QueryPage { $top = wfShowingResults( $offset, $num); $wgOut->addHTML( "
{$top}\n" );
- $sl = wfViewPrevNext( $offset, $limit , $wgLang->specialPage( $sname ) );
+ # often disable 'next' link when we reach the end
+ if($num < $limit) { $atend = true; } else { $atend = false; }
+
+ $sl = wfViewPrevNext( $offset, $limit , $wgLang->specialPage( $sname ), "" ,$atend );
$wgOut->addHTML( "
{$sl}