Use local context instead of global variables
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 24 Sep 2011 21:10:08 +0000 (21:10 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 24 Sep 2011 21:10:08 +0000 (21:10 +0000)
includes/specials/SpecialPasswordReset.php

index b7aabc0..f8df831 100644 (file)
@@ -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();
                }