From cfc94a606f0e5aec80f8a5271582b7f1afa1df3e Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 11 Dec 2006 18:16:32 +0000 Subject: [PATCH] 'next page' link now point to the first title of the next chunk instead of pointing to the last title of current chunk. --- RELEASE-NOTES | 2 ++ includes/SpecialAllpages.php | 1 + 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 119c81cd05..8a03d01de2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 3de8bd6512..51ef5c9742 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -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 ); -- 2.20.1