Index: branches/wmf/1.17wmf1/extensions/CategoryTree/CategoryPageSubclass.php |
— | — | @@ -1,7 +1,15 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | class CategoryTreeCategoryPage extends CategoryPage { |
5 | | - protected $mCategoryViewerClass = 'CategoryTreeCategoryViewer'; |
| 5 | + function closeShowCategory() { |
| 6 | + global $wgOut, $wgRequest; |
| 7 | + |
| 8 | + $from = $wgRequest->getVal( 'from' ); |
| 9 | + $until = $wgRequest->getVal( 'until' ); |
| 10 | + |
| 11 | + $viewer = new CategoryTreeCategoryViewer( $this->mTitle, $from, $until ); |
| 12 | + $wgOut->addHTML( $viewer->getHTML() ); |
| 13 | + } |
6 | 14 | } |
7 | 15 | |
8 | 16 | class CategoryTreeCategoryViewer extends CategoryViewer { |