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