* (bug 14471) Use HTMLTidy and generate limit report in action=parse
* (bug 14459) Added prependtext and appendtext parameters to action=edit
* (bug 14526) Unescaped SQL in list=backlinks
+* Added 'hidden' flag to list=allcategories and prop=categoryinfo output
=== Languages updated in 1.13 ===
$prop = array_flip($params['prop']);
$this->addFieldsIf( array( 'cat_pages', 'cat_subcats', 'cat_files' ), isset($prop['size']) );
- //$this->addFieldsIf( 'cat_hidden', isset($prop['hidden']) );
+ $this->addFieldsIf( 'cat_hidden', isset($prop['hidden']) );
$res = $this->select(__METHOD__);
$item['files'] = $row->cat_files;
$item['subcats'] = $row->cat_subcats;
}
- //Isn't populated, so doesn't work
- //if( isset( $prop['hidden'] ) && $row->cat_hidden )
- // $item['hidden'] = '';
+ if( isset( $prop['hidden'] ) && $row->cat_hidden )
+ $item['hidden'] = '';
$categories[] = $item;
}
}
ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2
),
'prop' => array (
- ApiBase :: PARAM_TYPE => array( 'size', /*'hidden'*/ ),
+ ApiBase :: PARAM_TYPE => array( 'size', 'hidden' ),
ApiBase :: PARAM_DFLT => '',
ApiBase :: PARAM_ISMULTI => true
),
}
$this->addTables('category');
- $this->addFields(array('cat_title', 'cat_pages', 'cat_subcats', 'cat_files'));
+ $this->addFields(array('cat_title', 'cat_pages', 'cat_subcats', 'cat_files', 'cat_hidden'));
$this->addWhere(array('cat_title' => $cattitles));
$db = $this->getDB();
$vals['pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files;
$vals['files'] = $row->cat_files;
$vals['subcats'] = $row->cat_subcats;
+ if($row->cat_hidden)
+ $vals['hidden'] = '';
$this->addPageSubItems($catids[$row->cat_title], $vals);
}
$db->freeResult($res);