API: Fix up r47470: User::newFromRow() needs all rows from the User table. This kills...
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 21 Feb 2009 12:44:41 +0000 (12:44 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 21 Feb 2009 12:44:41 +0000 (12:44 +0000)
includes/api/ApiQueryUsers.php

index 6e0e5c5..3efd4e0 100644 (file)
@@ -78,10 +78,8 @@ if (!defined('MEDIAWIKI')) {
                {
                        $db = $this->getDb();
                        $this->addTables('user', 'u1');
-                       $this->addFields('u1.user_name');
+                       $this->addFields('u1.*');
                        $this->addWhereFld('u1.user_name', $goodNames);
-                       $this->addFieldsIf('u1.user_editcount', isset($this->prop['editcount']));
-                       $this->addFieldsIf('u1.user_registration', isset($this->prop['registration']));
 
                        if(isset($this->prop['groups'])) {
                                $this->addTables('user_groups');