Index: trunk/phase3/includes/specials/SpecialUnblock.php |
— | — | @@ -46,7 +46,6 @@ |
47 | 47 | # Check for database lock |
48 | 48 | if( wfReadOnly() ) { |
49 | 49 | throw new ReadOnlyError; |
50 | | - return; |
51 | 50 | } |
52 | 51 | |
53 | 52 | list( $this->target, $this->type ) = SpecialBlock::getTargetAndType( $par, $wgRequest ); |
Index: trunk/phase3/includes/specials/SpecialPasswordReset.php |
— | — | @@ -33,8 +33,6 @@ |
34 | 34 | } |
35 | 35 | |
36 | 36 | public function userCanExecute( User $user ) { |
37 | | - global $wgPasswordResetRoutes, $wgAuth; |
38 | | - |
39 | 37 | $error = $this->canChangePassword( $user ); |
40 | 38 | if ( is_string( $error ) ) { |
41 | 39 | throw new ErrorPageError( 'internalerror', $error ); |
— | — | @@ -243,7 +241,7 @@ |
244 | 242 | * @return Bool |
245 | 243 | */ |
246 | 244 | function isListed() { |
247 | | - global $wgPasswordResetRoutes, $wgAuth, $wgUser; |
| 245 | + global $wgUser; |
248 | 246 | |
249 | 247 | if ( $this->canChangePassword( $wgUser ) === true ) { |
250 | 248 | return parent::isListed(); |
Index: trunk/phase3/includes/specials/SpecialLockdb.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | } |
36 | 36 | |
37 | 37 | public function execute( $par ) { |
38 | | - global $wgUser, $wgOut, $wgRequest; |
| 38 | + global $wgUser, $wgRequest; |
39 | 39 | |
40 | 40 | $this->setHeaders(); |
41 | 41 | |
Index: trunk/phase3/includes/specials/SpecialUploadStash.php |
— | — | @@ -333,7 +333,6 @@ |
334 | 334 | $form->prepareForm(); |
335 | 335 | $formResult = $form->tryAuthorizedSubmit(); |
336 | 336 | |
337 | | - |
338 | 337 | // show the files + form, if there are any, or just say there are none |
339 | 338 | $refreshHtml = Html::element( 'a', |
340 | 339 | array( 'href' => $this->getTitle()->getLocalURL() ), |
Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -579,7 +579,7 @@ |
580 | 580 | } |
581 | 581 | |
582 | 582 | function showSubpages( $title, $out ) { |
583 | | - global $wgUser, $wgLang; |
| 583 | + global $wgLang; |
584 | 584 | |
585 | 585 | if( !MWNamespace::hasSubpages( $title->getNamespace() ) ) |
586 | 586 | return; |