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() );
}
}
* 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