mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-15 03:43:55 +00:00
Remove JavaScript side injection of message 'categorytree-expand'
The JavaScript side injection of message 'categorytree-expand' was introduced in 026cc407
.
The intent of not initializing $wgLang does not work anymore, because
there are some other wfMessage() calls in the same request.
Change-Id: Idf0815654e1e095acccbe10afe0726bc8766f8ae
This commit is contained in:
parent
f37ad97bb1
commit
4b4a630807
|
@ -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();
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue