mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-15 12:00:44 +00:00
Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions.
This commit is contained in:
parent
a2b1573bd4
commit
793882aeb4
|
@ -102,8 +102,6 @@ $wgCategoryTreePageCategoryOptions['namespaces'] = false;
|
|||
$wgCategoryTreePageCategoryOptions['depth'] = 0;
|
||||
#$wgCategoryTreePageCategoryOptions['class'] = 'CategoryTreeInlineNode';
|
||||
|
||||
$wgExtensionAliasesFiles['CategoryTree'] = dirname(__FILE__) . '/CategoryTreePage.i18n.alias.php';
|
||||
|
||||
/**
|
||||
* Register extension setup hook and credits
|
||||
*/
|
||||
|
@ -131,6 +129,7 @@ $wgExtensionCredits['parserhook'][] = array(
|
|||
* Register the special page
|
||||
*/
|
||||
$dir = dirname(__FILE__) . '/';
|
||||
$wgExtensionAliasesFiles['CategoryTree'] = $dir . 'CategoryTreePage.i18n.alias.php';
|
||||
$wgExtensionMessagesFiles['CategoryTree'] = $dir . 'CategoryTree.i18n.php';
|
||||
$wgAutoloadClasses['CategoryTreePage'] = $dir . 'CategoryTreePage.php';
|
||||
$wgAutoloadClasses['CategoryTree'] = $dir . 'CategoryTreeFunctions.php';
|
||||
|
|
Loading…
Reference in a new issue