r98028 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98027‎ | r98028 | r98029 >
Date:21:10, 24 September 2011
Author:ialex
Status:ok
Tags:
Comment:
Use local context instead of global variables
Modified paths:
  • /trunk/phase3/includes/specials/SpecialPasswordReset.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialPasswordReset.php
@@ -262,9 +262,7 @@
263263 * @return Bool
264264 */
265265 function isListed() {
266 - global $wgUser;
267 -
268 - if ( $this->canChangePassword( $wgUser ) === true ) {
 266+ if ( $this->canChangePassword( $this->getUser() ) === true ) {
269267 return parent::isListed();
270268 }
271269

Status & tagging log