X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoriesRdf.php;h=eb601a20ae71941280a92bd8ab81f17537ecf812;hb=2adff7579d43b053b190635bd3fb51943a2a3399;hp=fc296d4c32469dbe6480f338cbbd0ae6f894b4dc;hpb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoriesRdf.php b/includes/CategoriesRdf.php index fc296d4c32..eb601a20ae 100644 --- a/includes/CategoriesRdf.php +++ b/includes/CategoriesRdf.php @@ -85,6 +85,10 @@ class CategoriesRdf { * @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' )