First little bit of cleaning out the Augean stables of SpecialBlockip.php: spin out...
[lhc/web/wiklou.git] / includes / api / ApiQueryUsers.php
index 2f454dd..1137804 100644 (file)
@@ -34,7 +34,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
  *
  * @ingroup API
  */
- class ApiQueryUsers extends ApiQueryBase {
+class ApiQueryUsers extends ApiQueryBase {
 
        private $tokenFunctions, $prop;
 
@@ -161,7 +161,9 @@ if ( !defined( 'MEDIAWIKI' ) ) {
                                                User::getGroupPermissions( array( $row->ug_group ) ) ) );
                                        $result->setIndexedTagName( $data[$name]['rights'], 'r' );
                                }
-
+                               if ( $row->ipb_deleted ) {
+                                       $data[$name]['hidden'] = '';
+                               }
                                if ( isset( $this->prop['blockinfo'] ) && !is_null( $row->ipb_by_text ) ) {
                                        $data[$name]['blockedby'] = $row->ipb_by_text;
                                        $data[$name]['blockreason'] = $row->ipb_reason;
@@ -251,7 +253,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
                if ( isset( $params['token'] ) ) {
                        return 'private';
                } else {
-                       return 'public';
+                       return 'anon-public-user-private';
                }
        }