diff --git a/CategoryTreeFunctions.php b/CategoryTreeFunctions.php index 7f9b2086..45dae51c 100644 --- a/CategoryTreeFunctions.php +++ b/CategoryTreeFunctions.php @@ -637,8 +637,7 @@ class CategoryTree { $tag = 'span'; if ( $children == 0 ) { $txt = wfMessage( 'categorytree-expand-bullet' )->plain(); - # Don't load this message for ajax requests, so that we don't have to initialise $wgLang - $linkattr[ 'title' ] = $this->mIsAjaxRequest ? '##LOAD##' : wfMessage( 'categorytree-expand' )->plain(); + $linkattr[ 'title' ] = wfMessage( 'categorytree-expand' )->plain(); $linkattr[ 'data-ct-state' ] = 'collapsed'; } else { $txt = wfMessage( 'categorytree-collapse-bullet' )->plain(); diff --git a/modules/ext.categoryTree.js b/modules/ext.categoryTree.js index e004826b..611ed77b 100644 --- a/modules/ext.categoryTree.js +++ b/modules/ext.categoryTree.js @@ -133,7 +133,6 @@ formatversion: 2 } ).done( function ( data ) { data = data.categorytree.html; - data = data.replace( /##LOAD##/g, mw.msg( 'categorytree-expand' ) ); if ( data === '' ) { switch ( ctMode ) {