Index: trunk/phase3/includes/WikiCategoryPage.php |
— | — | @@ -3,6 +3,11 @@ |
4 | 4 | * Special handling for category pages |
5 | 5 | */ |
6 | 6 | class WikiCategoryPage extends WikiPage { |
| 7 | + |
| 8 | + public function __construct( Title $title ) { |
| 9 | + $this->mTitle = $title; |
| 10 | + } |
| 11 | + |
7 | 12 | /** |
8 | 13 | * Don't return a 404 for categories in use. |
9 | 14 | * In use defined as: either the actual page exists |
Index: trunk/phase3/includes/CategoryPage.php |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | unset( $reqArray["from"] ); |
95 | 95 | unset( $reqArray["to"] ); |
96 | 96 | |
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 ); |
98 | 98 | $this->getContext()->getOutput()->addHTML( $viewer->getHTML() ); |
99 | 99 | } |
100 | 100 | } |