http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72319
Revision: 72319
Author: platonides
Date: 2010-09-03 21:53:02 +0000 (Fri, 03 Sep 2010)
Log Message:
-----------
Remove call to deprecated function Linker::makeKnownLink from function
specialLink.
Modified Paths:
--------------
trunk/phase3/includes/Linker.php
Modified: trunk/phase3/includes/Linker.php
===================================================================
--- trunk/phase3/includes/Linker.php 2010-09-03 21:52:48 UTC (rev 72318)
+++ trunk/phase3/includes/Linker.php 2010-09-03 21:53:02 UTC (rev 72319)
@@ -774,12 +774,9 @@
* 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' ) );
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs