'next page' link now point to the first title of the next chunk instead of
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 11 Dec 2006 18:16:32 +0000 (18:16 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 11 Dec 2006 18:16:32 +0000 (18:16 +0000)
pointing to the last title of current chunk.

RELEASE-NOTES
includes/SpecialAllpages.php

index 119c81c..8a03d01 100644 (file)
@@ -266,6 +266,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 8148) Handle non-removable output buffers gracefully when cleaning
   buffers for HTTP 304 responses, StreamFile, and Special:Export.
   Duplicated code merged into wfResetOutputBuffers() and wfClearOutputBuffers()
+* Special:AllPages : 'next page' link now point to the first title of the next
+  chunk instead of pointing to the last title of current chunk.
 
 
 == Languages updated ==
index 3de8bd6..51ef5c9 100644 (file)
@@ -270,6 +270,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
                                $sk->makeKnownLink( $wgContLang->specialPage( "Allpages" ),
                                        wfMsgHtml ( 'allpages' ) );
                if ( isset($dbr) && $dbr && ($n == $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) {
+                       $t = Title::MakeTitle( $s->page_namespace, $s->page_title );
                        $self = SpecialPage::getTitleFor( 'Allpages' );
                        $q = 'from=' . $t->getPartialUrl() . ( $namespace ? '&namespace=' . $namespace : '' );
                        $nextLink = $sk->makeKnownLinkObj( $self, wfMsgHtml( 'nextpage', $t->getText() ), $q );