r99898 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99897‎ | r99898 | r99899 >
Date:18:14, 15 October 2011
Author:mglaser
Status:ok
Tags:
Comment:
* restored category page (some references to Title object were missing)
Modified paths:
  • /trunk/phase3/includes/CategoryPage.php (modified) (history)
  • /trunk/phase3/includes/WikiCategoryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/WikiCategoryPage.php
@@ -3,6 +3,11 @@
44 * Special handling for category pages
55 */
66 class WikiCategoryPage extends WikiPage {
 7+
 8+ public function __construct( Title $title ) {
 9+ $this->mTitle = $title;
 10+ }
 11+
712 /**
813 * Don't return a 404 for categories in use.
914 * In use defined as: either the actual page exists
Index: trunk/phase3/includes/CategoryPage.php
@@ -93,7 +93,7 @@
9494 unset( $reqArray["from"] );
9595 unset( $reqArray["to"] );
9696
97 - $viewer = new $this->mCategoryViewerClass( $this->mTitle, $this->getContext(), $from, $until, $reqArray );
 97+ $viewer = new $this->mCategoryViewerClass( $this->getContext()->getTitle(), $this->getContext(), $from, $until, $reqArray );
9898 $this->getContext()->getOutput()->addHTML( $viewer->getHTML() );
9999 }
100100 }

Status & tagging log