From 7f07ad70b742741eb7867b6badc0cb9d7adad987 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 27 Apr 2004 04:25:06 +0000 Subject: [PATCH] unlike the (# next) message in most cases. --- includes/QueryPage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 68db80e1c5..b7901adb93 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}

\n" ); $s = "
    "; -- 2.20.1