Due to T201119, some counts are not in sync. We are assuming
that in this case page count is just 0.
Change-Id: Iffd24270db6d852839d6922aa492c1975bf185e0
* @param int $subcategories Subcategory count
*/
public function writeCategoryData( $categoryName, $isHidden, $pages, $subcategories ) {
+ if ( $pages < 0 ) {
+ // Bugfix for T201119
+ $pages = 0;
+ }
$title = Title::makeTitle( NS_CATEGORY, $categoryName );
$this->rdfWriter->about( $this->titleToUrl( $title ) )
->say( 'a' )