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();
|
||||
}
|
||||
|
||||
return 've.init.platform.addParsedMessages(' . FormatJson::encode(
|
||||
$parsedMessages,
|
||||
(bool)ResourceLoader::inDebugMode()
|
||||
return 've.init.platform.addParsedMessages(' . $context->encodeJson(
|
||||
$parsedMessages
|
||||
) . ');' .
|
||||
've.init.platform.addMessages(' . FormatJson::encode(
|
||||
$plainMessages,
|
||||
(bool)ResourceLoader::inDebugMode()
|
||||
've.init.platform.addMessages(' . $context->encodeJson(
|
||||
$plainMessages
|
||||
) . ');';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue