Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -175,8 +175,8 @@ |
176 | 176 | // Record new user's data |
177 | 177 | $lastUser = $row->user_name; |
178 | 178 | $lastUserData = array( |
| 179 | + 'userid' => $row->user_id, |
179 | 180 | 'name' => $lastUser, |
180 | | - 'userid' => $row->user_id, |
181 | 181 | ); |
182 | 182 | if ( $fld_blockinfo && !is_null( $row->ipb_by_text ) ) { |
183 | 183 | $lastUserData['blockedby'] = $row->ipb_by_text; |
Index: trunk/phase3/includes/api/ApiQueryUsers.php |
— | — | @@ -135,6 +135,8 @@ |
136 | 136 | foreach ( $res as $row ) { |
137 | 137 | $user = User::newFromRow( $row ); |
138 | 138 | $name = $user->getName(); |
| 139 | + |
| 140 | + $data[$name]['userid'] = $user->getId(); |
139 | 141 | $data[$name]['name'] = $name; |
140 | 142 | |
141 | 143 | if ( isset( $this->prop['editcount'] ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -184,6 +184,7 @@ |
185 | 185 | * (bug 27611) list=blocks: Use ipb_by_text instead of join with user table |
186 | 186 | * (bug 27616) Add userid of blocked user and blocker to list=blocks |
187 | 187 | * (bug 27688) Simplify queries to list user block information |
| 188 | +* (bug 27708) list=users does not have a property to return user id |
188 | 189 | |
189 | 190 | === Languages updated in 1.18 === |
190 | 191 | |