Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions.

This commit is contained in:
Siebrand Mazeland 2008-11-26 23:17:15 +00:00
parent a2b1573bd4
commit 793882aeb4

View file

@ -102,8 +102,6 @@ $wgCategoryTreePageCategoryOptions['namespaces'] = false;
$wgCategoryTreePageCategoryOptions['depth'] = 0; $wgCategoryTreePageCategoryOptions['depth'] = 0;
#$wgCategoryTreePageCategoryOptions['class'] = 'CategoryTreeInlineNode'; #$wgCategoryTreePageCategoryOptions['class'] = 'CategoryTreeInlineNode';
$wgExtensionAliasesFiles['CategoryTree'] = dirname(__FILE__) . '/CategoryTreePage.i18n.alias.php';
/** /**
* Register extension setup hook and credits * Register extension setup hook and credits
*/ */
@ -131,6 +129,7 @@ $wgExtensionCredits['parserhook'][] = array(
* Register the special page * Register the special page
*/ */
$dir = dirname(__FILE__) . '/'; $dir = dirname(__FILE__) . '/';
$wgExtensionAliasesFiles['CategoryTree'] = $dir . 'CategoryTreePage.i18n.alias.php';
$wgExtensionMessagesFiles['CategoryTree'] = $dir . 'CategoryTree.i18n.php'; $wgExtensionMessagesFiles['CategoryTree'] = $dir . 'CategoryTree.i18n.php';
$wgAutoloadClasses['CategoryTreePage'] = $dir . 'CategoryTreePage.php'; $wgAutoloadClasses['CategoryTreePage'] = $dir . 'CategoryTreePage.php';
$wgAutoloadClasses['CategoryTree'] = $dir . 'CategoryTreeFunctions.php'; $wgAutoloadClasses['CategoryTree'] = $dir . 'CategoryTreeFunctions.php';