3 * Special handling for category pages
5 class WikiCategoryPage
extends WikiPage
{
8 * Don't return a 404 for categories in use.
9 * In use defined as: either the actual page exists
10 * or the category currently has members.
14 public function hasViewableContent() {
15 if ( parent
::hasViewableContent() ) {
18 $cat = Category
::newFromTitle( $this->mTitle
);
19 // If any of these are not 0, then has members
20 if ( $cat->getPageCount()
21 ||
$cat->getSubcatCount()
22 ||
$cat->getFileCount()