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 @@
263
263
* @return Bool
264
264
*/
265
265
function isListed() {
266
- global $wgUser;
267
-
268
- if ( $this->canChangePassword( $wgUser ) === true ) {
266
+ if ( $this->canChangePassword( $this->getUser() ) === true ) {
269
267
return parent::isListed();
270
268
}
271
269
Status & tagging log
21:10, 24 September 2011
Krinkle
(
talk
|
contribs
)
changed the
status
of r98028
[
removed:
new
added:
ok]