From: Rob Church Date: Fri, 18 Aug 2006 16:08:38 +0000 (+0000) Subject: * (bug 7061) Format title on "from (page)" links on Special:Allpages X-Git-Tag: 1.31.0-rc.0~55955 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=d99d58f175f14c36ec83e32ac7d701c0a4e65dee;p=lhc%2Fweb%2Fwiklou.git * (bug 7061) Format title on "from (page)" links on Special:Allpages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 91a5fc60c4..200051ae34 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -143,6 +143,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Added [[:Image:Foo.png]] style links to the pagelinks table * Avoid duplicate revision imports with Special:Import * (bug 7054) Validate email address before sending email confirmation message +* (bug 7061) Format title on "from (page)" links on Special:Allpages == Languages updated == diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index ba8a450f9d..891ae459b4 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -276,11 +276,9 @@ 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 )) ) { - $namespaceparam = $namespace ? "&namespace=$namespace" : ""; - $out2 .= " | " . $sk->makeKnownLink( - $wgContLang->specialPage( "Allpages" ), - wfMsgHtml ( 'nextpage', $s->page_title ), - "from=" . wfUrlEncode ( $s->page_title ) . $namespaceparam ); + $self = Title::makeTitle( NS_SPECIAL, 'Allpages' ); + $q = 'from=' . $t->getPrefixedUrl() . ( $namespace ? '&namespace=' . $namespace : '' ); + $out2 .= ' | ' . $sk->makeKnownLinkObj( $self, wfMsgHtml( 'nextpage', $t->getText() ), $q ); } $out2 .= "
"; }