X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FWikiCategoryPage.php;h=2837573998610c608684a4e4473414e719be75f8;hb=e5110cdbeabc214f2507f1ce0adb2bb6babb5c87;hp=6c932029ae2c4dece24d4c66c383cbe8d58c2c4e;hpb=b7221eaa0893e9e1ed31355e3ea98773fbc628ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/WikiCategoryPage.php b/includes/page/WikiCategoryPage.php index 6c932029ae..2837573998 100644 --- a/includes/page/WikiCategoryPage.php +++ b/includes/page/WikiCategoryPage.php @@ -59,6 +59,20 @@ class WikiCategoryPage extends WikiPage { $pageId = $this->getTitle()->getArticleID(); $pageProps = PageProps::getInstance()->getProperties( $this->getTitle(), 'hiddencat' ); - return isset( $pageProps[$pageId] ) ? true : false; + return isset( $pageProps[$pageId] ); + } + + /** + * Checks if a category is expected to be an unused category. + * + * @since 1.33 + * + * @return bool + */ + public function isExpectedUnusedCategory() { + $pageId = $this->getTitle()->getArticleID(); + $pageProps = PageProps::getInstance()->getProperties( $this->getTitle(), 'expectunusedcategory' ); + + return isset( $pageProps[$pageId] ); } }