From 96c4e246d4e92841890475efecaf9c99a8b6b936 Mon Sep 17 00:00:00 2001 From: Markus Glaser Date: Sat, 15 Oct 2011 18:14:25 +0000 Subject: [PATCH] * restored category page (some references to Title object were missing) --- includes/CategoryPage.php | 2 +- includes/WikiCategoryPage.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 8734b4c56c..eab7a35685 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -93,7 +93,7 @@ class CategoryPage extends Article { unset( $reqArray["from"] ); unset( $reqArray["to"] ); - $viewer = new $this->mCategoryViewerClass( $this->mTitle, $this->getContext(), $from, $until, $reqArray ); + $viewer = new $this->mCategoryViewerClass( $this->getContext()->getTitle(), $this->getContext(), $from, $until, $reqArray ); $this->getContext()->getOutput()->addHTML( $viewer->getHTML() ); } } diff --git a/includes/WikiCategoryPage.php b/includes/WikiCategoryPage.php index b8cc268582..96dcef20b5 100644 --- a/includes/WikiCategoryPage.php +++ b/includes/WikiCategoryPage.php @@ -3,6 +3,11 @@ * Special handling for category pages */ class WikiCategoryPage extends WikiPage { + + public function __construct( Title $title ) { + $this->mTitle = $title; + } + /** * Don't return a 404 for categories in use. * In use defined as: either the actual page exists -- 2.20.1