* restored category page (some references to Title object were missing)
authorMarkus Glaser <mglaser@users.mediawiki.org>
Sat, 15 Oct 2011 18:14:25 +0000 (18:14 +0000)
committerMarkus Glaser <mglaser@users.mediawiki.org>
Sat, 15 Oct 2011 18:14:25 +0000 (18:14 +0000)
includes/CategoryPage.php
includes/WikiCategoryPage.php

index 8734b4c..eab7a35 100644 (file)
@@ -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() );
        }
 }
index b8cc268..96dcef2 100644 (file)
@@ -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