Remove call to deprecated function Linker::makeKnownLink from function specialLink.
authorPlatonides <platonides@users.mediawiki.org>
Fri, 3 Sep 2010 21:53:02 +0000 (21:53 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 3 Sep 2010 21:53:02 +0000 (21:53 +0000)
includes/Linker.php

index 00ae033..b0779ce 100644 (file)
@@ -774,12 +774,9 @@ class Linker {
         * Usage example: $skin->specialLink( 'recentchanges' )
         */
        function specialLink( $name, $key = '' ) {
-               global $wgContLang;
-
                if ( $key == '' ) { $key = strtolower( $name ); }
-               $pn = $wgContLang->ucfirst( $name );
-               return $this->makeKnownLink( $wgContLang->specialPage( $pn ),
-                 wfMsg( $key ) );
+
+               return $this->link( SpecialPage::getTitleFor( $name ) , wfMsg( $key ), array(), array(), array( 'known', 'noclasses' ) );
        }
 
        /**