mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-23 03:23:09 +00:00
Merge "VisualEditorDataModule: Use ResourceLoaderContext::encodeJson"
This commit is contained in:
commit
d30aaa07a0
|
@ -32,13 +32,11 @@ class VisualEditorDataModule extends ResourceLoaderModule {
|
||||||
$plainMessages[ $msgKey ] = $msgObj->plain();
|
$plainMessages[ $msgKey ] = $msgObj->plain();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 've.init.platform.addParsedMessages(' . FormatJson::encode(
|
return 've.init.platform.addParsedMessages(' . $context->encodeJson(
|
||||||
$parsedMessages,
|
$parsedMessages
|
||||||
(bool)ResourceLoader::inDebugMode()
|
|
||||||
) . ');' .
|
) . ');' .
|
||||||
've.init.platform.addMessages(' . FormatJson::encode(
|
've.init.platform.addMessages(' . $context->encodeJson(
|
||||||
$plainMessages,
|
$plainMessages
|
||||||
(bool)ResourceLoader::inDebugMode()
|
|
||||||
) . ');';
|
) . ');';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue