Index: trunk/extensions/CategoryTree/CategoryTreePage.php |
— | — | @@ -15,8 +15,6 @@ |
16 | 16 | die( 1 ); |
17 | 17 | } |
18 | 18 | |
19 | | -require_once( dirname(__FILE__) . '/CategoryTreeFunctions.php' ); |
20 | | - |
21 | 19 | class CategoryTree extends SpecialPage { |
22 | 20 | |
23 | 21 | var $target = ''; |
— | — | @@ -27,7 +25,7 @@ |
28 | 26 | */ |
29 | 27 | function CategoryTree() { |
30 | 28 | global $wgOut; |
31 | | - SpecialPage::SpecialPage( 'CategoryTree', 'categorytree' ); |
| 29 | + SpecialPage::SpecialPage( 'CategoryTree', '', true ); |
32 | 30 | |
33 | 31 | #inject messages |
34 | 32 | efInjectCategoryTreeMessages(); |
— | — | @@ -42,6 +40,8 @@ |
43 | 41 | |
44 | 42 | $this->setHeaders(); |
45 | 43 | |
| 44 | + require_once( dirname(__FILE__) . '/CategoryTreeFunctions.php' ); |
| 45 | + |
46 | 46 | if ( $par ) $this->target = $par; |
47 | 47 | else $this->target = $wgRequest->getVal( 'target', wfMsg( 'rootcategory') ); |
48 | 48 | |