(bug 5570) Problems using <special page>/parameter link form for long titles
authorRob Church <robchurch@users.mediawiki.org>
Sun, 16 Apr 2006 19:17:02 +0000 (19:17 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 16 Apr 2006 19:17:02 +0000 (19:17 +0000)
RELEASE-NOTES
includes/SkinTemplate.php

index 6588c7b..4ad524c 100644 (file)
@@ -78,6 +78,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 5594) Id translation up to # Login and logout pages section
 * (bug 5536) Use content language for editing help link
 * (bug 5605) Improve German localisation files
+* (bug 5570) Problems using <special page>/parameter link form for long titles
 
 == Compatibility ==
 
index 3c85c6d..bf7ffaa 100644 (file)
@@ -674,10 +674,11 @@ class SkinTemplate extends Skin {
                                        );
                                }
                                if ( $this->mTitle->userCanMove()) {
+                                       $moveTitle = Title::makeTitle( NS_SPECIAL, 'Movepage' );
                                        $content_actions['move'] = array(
                                                'class' => ($this->mTitle->getDbKey() == 'Movepage' and $this->mTitle->getNamespace == NS_SPECIAL) ? 'selected' : false,
                                                'text' => wfMsg('move'),
-                                               'href' => $this->makeSpecialUrl("Movepage/$this->thispage" )
+                                               'href' => $moveTitle->getLocalUrl( 'target=' . $this->thispage )
                                        );
                                }
                        } else {
@@ -816,13 +817,16 @@ class SkinTemplate extends Skin {
                        wfRunHooks( 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink', array( &$this, &$nav_urls, &$oldid, &$revid ) );
                }
 
-               if( $this->mTitle->getNamespace() != NS_SPECIAL) {
+               if( $this->mTitle->getNamespace() != NS_SPECIAL ) {
+                       $wlhTitle = Title::makeTitle( NS_SPECIAL, 'Whatlinkshere' );
                        $nav_urls['whatlinkshere'] = array(
-                               'href' => $this->makeSpecialUrl("Whatlinkshere/$this->thispage")
+                               'href' => $wlhTitle->getLocalUrl( 'target=' . $this->thispage )
                        );
                        if( $this->mTitle->getArticleId() ) {
+                               $rclTitle = Title::makeTitle( NS_SPECIAL, 'Recentchangeslinked' );
                                $nav_urls['recentchangeslinked'] = array(
-                                       'href' => $this->makeSpecialUrl("Recentchangeslinked/$this->thispage")
+                                       'href' => $rclTitle->getLocalUrl( 'target=' . $this->thispage )
+                                       #'href' => $this->makeSpecialUrl("Recentchangeslinked/$this->thispage")
                                );
                        }
                        if ($wgUseTrackbacks)