User "Aaron Schulz" changed the status of MediaWiki.r97795.

Old Status: new
New Status: ok

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97795
Commit summary:

Fixed User::getGroups(), apparently broken since r33333. User::load() doesn't 
load groups anymore, so calling $this->getGroups() was the same as just 
accessing $this->mGroups. Usually it doesn't matter, since most factory 
functions are funnelled into loadFromId() which calls loadGroups() or loads the 
groups from the cache, but loadFromRow() was potentially broken.

It's necessary for User::loadFromRow() to set $this->mGroups to null, same as 
the calling code in User::loadFromDatabase(), so that they will be loaded 
dynamically when User::newFromRow() is called.

No bugs found that are caused by this but it couldn't hurt to have working 
accessors. Tested from eval.php.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to