From 717141fc6442516e35674fd0d8c9d98fede5f3b9 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 24 Sep 2011 21:10:08 +0000 Subject: [PATCH] Use local context instead of global variables --- includes/specials/SpecialPasswordReset.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/specials/SpecialPasswordReset.php b/includes/specials/SpecialPasswordReset.php index b7aabc07a8..f8df8314fe 100644 --- a/includes/specials/SpecialPasswordReset.php +++ b/includes/specials/SpecialPasswordReset.php @@ -262,9 +262,7 @@ class SpecialPasswordReset extends FormSpecialPage { * @return Bool */ function isListed() { - global $wgUser; - - if ( $this->canChangePassword( $wgUser ) === true ) { + if ( $this->canChangePassword( $this->getUser() ) === true ) { return parent::isListed(); } -- 2.20.1