MediaWiki
master
|
00001 <?php 00026 class WikiCategoryPage extends WikiPage { 00027 00035 public function hasViewableContent() { 00036 if ( parent::hasViewableContent() ) { 00037 return true; 00038 } else { 00039 $cat = Category::newFromTitle( $this->mTitle ); 00040 // If any of these are not 0, then has members 00041 if ( $cat->getPageCount() 00042 || $cat->getSubcatCount() 00043 || $cat->getFileCount() 00044 ) { 00045 return true; 00046 } 00047 } 00048 return false; 00049 } 00050 }