we have SpecialPage::getTitleFor() for that
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 15 Jun 2009 06:46:32 +0000 (06:46 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 15 Jun 2009 06:46:32 +0000 (06:46 +0000)
skins/Standard.php

index fabc81a..5923e16 100644 (file)
@@ -161,7 +161,7 @@ class SkinStandard extends Skin {
                if( $wgUser->isLoggedIn() ) {
                        $s.= $this->specialLink( 'watchlist' ) ;
                        $s .= $sep . $this->linkKnown(
-                               Title::newFromText( $wgContLang->specialPage( 'Contributions' ) ),
+                               SpecialPage::getTitleFor( 'Contributions' ),
                                wfMsg( 'mycontris' ),
                                array(),
                                array( 'target' => $wgUser->getName() )