Merge "Move $wgExtensionMessagesFiles['CategoryTreeMagic'] into $wgExtensionFunctions"

This commit is contained in:
jenkins-bot 2014-04-07 17:26:09 +00:00 committed by Gerrit Code Review
commit 66709b8766

View file

@ -116,10 +116,6 @@ $wgExtensionCredits['specialpage'][] = $wgExtensionCredits['parserhook'][] = arr
*/
$dir = dirname( __FILE__ ) . '/';
if ( $wgUseAjax && $wgCategoryTreeAllowTag ) {
$wgExtensionMessagesFiles['CategoryTreeMagic'] = $dir . 'CategoryTree.i18n.magic.php';
}
$wgMessagesDirs['CategoryTree'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['CategoryTree'] = $dir . 'CategoryTree.i18n.php';
$wgAutoloadClasses['CategoryTreePage'] = $dir . 'CategoryTreePage.php';
@ -193,7 +189,9 @@ function efCategoryTree() {
}
if ( $wgCategoryTreeAllowTag ) {
global $wgExtensionMessagesFiles;
$wgHooks['ParserFirstCallInit'][] = 'efCategoryTreeSetHooks';
$wgExtensionMessagesFiles['CategoryTreeMagic'] = $dir . 'CategoryTree.i18n.magic.php';
}
if ( !isset( $wgCategoryTreeDefaultOptions['mode'] ) || is_null( $wgCategoryTreeDefaultOptions['mode'] ) ) {