* Tweaked Revision class to handle loading the current user name instead of rev_user_...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 19 Oct 2011 22:25:26 +0000 (22:25 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 19 Oct 2011 22:25:26 +0000 (22:25 +0000)
commitbbf11e8cf0dc77b11ef203c394f8b796439fab9e
tree86922d39c40c65a3c85e1d6c3572e07c33aa7305
parent59e2f3e0916851b7390493484a47e1a20d9a6d0b
* Tweaked Revision class to handle loading the current user name instead of rev_user_text. It still falls back to rev_user_text when building objects from DB rows for b/c.
* Moved JOIN conds to fetchFromConds() as that's where the tables are specified. This lets us avoid the same page_id=rev_page join conds plastered all over the code. Also, we can't mix WHERE and JOIN style join conds.
* Removed duplication in fetchFromConds() by using selectPageFields().
* Removed duplicate rev_parent_id field from contribs SELECT.

Yo make use of these changes, Pagers and lists still need to be updated to use Revision::selectUserFields() and join on the user table.
includes/Revision.php