From: Markus Glaser Date: Sat, 15 Oct 2011 18:14:25 +0000 (+0000) Subject: * restored category page (some references to Title object were missing) X-Git-Tag: 1.31.0-rc.0~27098 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=96c4e246d4e92841890475efecaf9c99a8b6b936;p=lhc%2Fweb%2Fwiklou.git * restored category page (some references to Title object were missing) --- 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