r15881 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15880‎ | r15881 | r15882 >
Date:17:37, 29 July 2006
Author:daniel
Status:old
Tags:
Comment:
Made Special:CategoryTRee show up on Special:Specialpages
Modified paths:
  • /trunk/extensions/CategoryTree/CategoryTreePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryTree/CategoryTreePage.php
@@ -15,8 +15,6 @@
1616 die( 1 );
1717 }
1818
19 -require_once( dirname(__FILE__) . '/CategoryTreeFunctions.php' );
20 -
2119 class CategoryTree extends SpecialPage {
2220
2321 var $target = '';
@@ -27,7 +25,7 @@
2826 */
2927 function CategoryTree() {
3028 global $wgOut;
31 - SpecialPage::SpecialPage( 'CategoryTree', 'categorytree' );
 29+ SpecialPage::SpecialPage( 'CategoryTree', '', true );
3230
3331 #inject messages
3432 efInjectCategoryTreeMessages();
@@ -42,6 +40,8 @@
4341
4442 $this->setHeaders();
4543
 44+ require_once( dirname(__FILE__) . '/CategoryTreeFunctions.php' );
 45+
4646 if ( $par ) $this->target = $par;
4747 else $this->target = $wgRequest->getVal( 'target', wfMsg( 'rootcategory') );
4848