mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
load() user objects when retriving properties. Might help with some strange bugs we're seeing on testwiki but nowhere else
This commit is contained in:
parent
4f2b9a97a4
commit
145db0f341
|
@ -102,7 +102,11 @@ class AFComputedVariable {
|
|||
return self::$userCache[$username] = $u;
|
||||
}
|
||||
|
||||
return self::$userCache[$username] = User::newFromName( $username );
|
||||
$user = User::newFromName( $username );
|
||||
$user->load();
|
||||
self::$userCache[$username] = $user;
|
||||
|
||||
return $user;
|
||||
}
|
||||
|
||||
static function articleFromTitle( $namespace, $title ) {
|
||||
|
|
Loading…
Reference in a new issue