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:
Andrew Garrett 2009-03-10 23:28:18 +00:00
parent 4f2b9a97a4
commit 145db0f341

View file

@ -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 ) {