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