diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/WikiCategoryPage.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/WikiCategoryPage.php')
-rw-r--r-- | includes/WikiCategoryPage.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/includes/WikiCategoryPage.php b/includes/WikiCategoryPage.php index 42c2a6ce..01938cd9 100644 --- a/includes/WikiCategoryPage.php +++ b/includes/WikiCategoryPage.php @@ -3,21 +3,13 @@ * Special handling for category pages */ class WikiCategoryPage extends WikiPage { - /** - * Constructor from a page id - * @param $id Int article ID to load - */ - public static function newFromID( $id ) { - $t = Title::newFromID( $id ); - # @todo FIXME: Doesn't inherit right - return $t == null ? null : new self( $t ); - # return $t == null ? null : new static( $t ); // PHP 5.3 - } /** * Don't return a 404 for categories in use. * In use defined as: either the actual page exists * or the category currently has members. + * + * @return bool */ public function hasViewableContent() { if ( parent::hasViewableContent() ) { |