* (bug 7061) Format title on "from (page)" links on Special:Allpages
authorRob Church <robchurch@users.mediawiki.org>
Fri, 18 Aug 2006 16:08:38 +0000 (16:08 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 18 Aug 2006 16:08:38 +0000 (16:08 +0000)
RELEASE-NOTES
includes/SpecialAllpages.php

index 91a5fc6..200051a 100644 (file)
@@ -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 ==
 
index ba8a450..891ae45 100644 (file)
@@ -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 .= "</td></tr></table><hr />";
        }