MediaWiki  1.23.8
Go to the documentation of this file.
1 <?php
26 class WikiCategoryPage extends WikiPage {
35  public function hasViewableContent() {
36  if ( parent::hasViewableContent() ) {
37  return true;
38  } else {
39  $cat = Category::newFromTitle( $this->mTitle );
40  // If any of these are not 0, then has members
41  if ( $cat->getPageCount()
42  || $cat->getSubcatCount()
43  || $cat->getFileCount()
44  ) {
45  return true;
46  }
47  }
48  return false;
49  }
50 }
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Class representing a MediaWiki article and history.
Definition: WikiPage.php:37
Special handling for category pages.
Definition: WikiCategoryPage.php:26
static newFromTitle( $title)
Factory function.
Definition: Category.php:134
Don't return a 404 for categories in use.
Definition: WikiCategoryPage.php:35