Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | * @param $err String: error message or null if there's no error |
198 | 198 | */ |
199 | 199 | function show( $err = null ) { |
200 | | - global $wgOut, $wgUser; |
| 200 | + global $wgOut; |
201 | 201 | |
202 | 202 | $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
203 | 203 | |
— | — | @@ -223,8 +223,7 @@ |
224 | 224 | $wgOut->wrapWikiMsg( "<div id=\"mw-protect-cascadeon\">\n$1\n" . $titles . "</div>", array( 'protect-cascadeon', count($cascadeSources) ) ); |
225 | 225 | } |
226 | 226 | |
227 | | - $sk = $wgUser->getSkin(); |
228 | | - $titleLink = $sk->link( $this->mTitle ); |
| 227 | + $titleLink = Linker::link( $this->mTitle ); |
229 | 228 | $wgOut->setPageTitle( wfMsg( 'protect-title', $this->mTitle->getPrefixedText() ) ); |
230 | 229 | $wgOut->setSubtitle( wfMsg( 'protect-backlink', $titleLink ) ); |
231 | 230 | |
— | — | @@ -501,7 +500,7 @@ |
502 | 501 | |
503 | 502 | if ( $wgUser->isAllowed( 'editinterface' ) ) { |
504 | 503 | $title = Title::makeTitle( NS_MEDIAWIKI, 'Protect-dropdown' ); |
505 | | - $link = $wgUser->getSkin()->link( |
| 504 | + $link = Linker::link( |
506 | 505 | $title, |
507 | 506 | wfMsgHtml( 'protect-edit-reasonlist' ), |
508 | 507 | array(), |