X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryCategoryInfo.php;h=9266442e3bc4e5957c8bcf4236b2009455128bc0;hb=a2ea9f8b9289f197844e3282c2ac39e59c549996;hp=5c67ebf279aa49bfda90243c2cece0bd452dfdc3;hpb=8c3738e088f377642c540a0ccddb01b16ba7116b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 5c67ebf279..9266442e3b 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -86,9 +86,7 @@ class ApiQueryCategoryInfo extends ApiQueryBase { $vals['pages'] = $row->cat_pages - $row->cat_subcats - $row->cat_files; $vals['files'] = intval( $row->cat_files ); $vals['subcats'] = intval( $row->cat_subcats ); - if ( $row->cat_hidden ) { - $vals['hidden'] = ''; - } + $vals['hidden'] = (bool)$row->cat_hidden; $fit = $this->addPageSubItems( $catids[$row->cat_title], $vals ); if ( !$fit ) { $this->setContinueEnumParameter( 'continue', $row->cat_title ); @@ -117,6 +115,6 @@ class ApiQueryCategoryInfo extends ApiQueryBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci'; + return 'https://www.mediawiki.org/wiki/API:Categoryinfo'; } }