Index: trunk/phase3/includes/api/ApiQueryBase.php |
— | — | @@ -483,6 +483,8 @@ |
484 | 484 | 'ipblocks' => array( 'LEFT JOIN', 'ipb_user=user_id' ), |
485 | 485 | ) ); |
486 | 486 | |
| 487 | + $this->addFields( 'ipb_deleted' ); |
| 488 | + |
487 | 489 | if ( $showBlockInfo ) { |
488 | 490 | $this->addFields( array( 'ipb_reason', 'ipb_by_text', 'ipb_expiry' ) ); |
489 | 491 | } |
Index: trunk/phase3/includes/api/ApiQueryAllUsers.php |
— | — | @@ -177,6 +177,9 @@ |
178 | 178 | $lastUserData['blockreason'] = $row->ipb_reason; |
179 | 179 | $lastUserData['blockexpiry'] = $row->ipb_expiry; |
180 | 180 | } |
| 181 | + if ( $row->ipb_deleted ) { |
| 182 | + $lastUserData['hidden'] = ''; |
| 183 | + } |
181 | 184 | if ( $fld_editcount ) { |
182 | 185 | $lastUserData['editcount'] = intval( $row->user_editcount ); |
183 | 186 | } |
Index: trunk/phase3/includes/api/ApiQueryUsers.php |
— | — | @@ -161,7 +161,9 @@ |
162 | 162 | User::getGroupPermissions( array( $row->ug_group ) ) ) ); |
163 | 163 | $result->setIndexedTagName( $data[$name]['rights'], 'r' ); |
164 | 164 | } |
165 | | - |
| 165 | + if ( $row->ipb_deleted ) { |
| 166 | + $data[$name]['hidden'] = ''; |
| 167 | + } |
166 | 168 | if ( isset( $this->prop['blockinfo'] ) && !is_null( $row->ipb_by_text ) ) { |
167 | 169 | $data[$name]['blockedby'] = $row->ipb_by_text; |
168 | 170 | $data[$name]['blockreason'] = $row->ipb_reason; |