X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoriesRdf.php;h=eb601a20ae71941280a92bd8ab81f17537ecf812;hb=571a44a4bef0cdecc329636bfaa8f3935380c3f0;hp=fc296d4c32469dbe6480f338cbbd0ae6f894b4dc;hpb=5612400c8271ac2762fd2ce9acfcc9a58e47f0ee;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' )