From 9baf1901a12bb627dfb37460ea5dc4567f683690 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 13 Sep 2011 11:10:05 +0000 Subject: [PATCH] Call Linker methods statically --- includes/ProtectionForm.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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(), -- 2.20.1