(bug 1331) Add "next page" link to bottom of Special:Allpages in chunk mode
authorRob Church <robchurch@users.mediawiki.org>
Thu, 30 Nov 2006 17:09:27 +0000 (17:09 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 30 Nov 2006 17:09:27 +0000 (17:09 +0000)
This code is the stuff nightmares are made of. Nightmares that would make even David Gerard cry.

RELEASE-NOTES
includes/SpecialAllpages.php

index 3b514c1..5a72c0b 100644 (file)
@@ -228,6 +228,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   images, not horizontally.
 * Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
 * Add AuthPluginSetup hook to override $wgAuth after configuration
+* (bug 1331) Add "next page" link to bottom of Special:Allpages in chunk mode
 
 
 == Languages updated ==
index cfe8cb5..3de8bd6 100644 (file)
@@ -272,12 +272,16 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
                if ( isset($dbr) && $dbr && ($n == $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) {
                        $self = SpecialPage::getTitleFor( 'Allpages' );
                        $q = 'from=' . $t->getPartialUrl() . ( $namespace ? '&namespace=' . $namespace : '' );
-                       $out2 .= ' | ' . $sk->makeKnownLinkObj( $self, wfMsgHtml( 'nextpage', $t->getText() ), $q );
+                       $nextLink = $sk->makeKnownLinkObj( $self, wfMsgHtml( 'nextpage', $t->getText() ), $q );
+                       $out2 .= ' | ' . $nextLink;
                }
                $out2 .= "</td></tr></table><hr />";
        }
 
        $wgOut->addHtml( $out2 . $out );
+       if( isset( $nextLink ) )
+               $wgOut->addHtml( '<p style="font-size: smaller; float: right;">' . $nextLink . '</p>' );
+       
 }
        
 /**