From: Alexandre Emsenhuber Date: Tue, 13 Sep 2011 11:10:05 +0000 (+0000) Subject: Call Linker methods statically X-Git-Tag: 1.31.0-rc.0~27701 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=9baf1901a12bb627dfb37460ea5dc4567f683690;p=lhc%2Fweb%2Fwiklou.git Call Linker methods statically --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index cac302558a..caee18fb03 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -196,7 +196,7 @@ class ProtectionForm { * @param $err String: error message or null if there's no error */ function show( $err = null ) { - global $wgOut, $wgUser; + global $wgOut; $wgOut->setRobotPolicy( 'noindex,nofollow' ); @@ -223,8 +223,7 @@ class ProtectionForm { $wgOut->wrapWikiMsg( "
\n$1\n" . $titles . "
", array( 'protect-cascadeon', count($cascadeSources) ) ); } - $sk = $wgUser->getSkin(); - $titleLink = $sk->link( $this->mTitle ); + $titleLink = Linker::link( $this->mTitle ); $wgOut->setPageTitle( wfMsg( 'protect-title', $this->mTitle->getPrefixedText() ) ); $wgOut->setSubtitle( wfMsg( 'protect-backlink', $titleLink ) ); @@ -501,7 +500,7 @@ class ProtectionForm { if ( $wgUser->isAllowed( 'editinterface' ) ) { $title = Title::makeTitle( NS_MEDIAWIKI, 'Protect-dropdown' ); - $link = $wgUser->getSkin()->link( + $link = Linker::link( $title, wfMsgHtml( 'protect-edit-reasonlist' ), array(),