From: Alexandre Emsenhuber Date: Sat, 24 Sep 2011 21:10:08 +0000 (+0000) Subject: Use local context instead of global variables X-Git-Tag: 1.31.0-rc.0~27442 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=717141fc6442516e35674fd0d8c9d98fede5f3b9;p=lhc%2Fweb%2Fwiklou.git Use local context instead of global variables --- 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(); }