Merge "DataModule: Use module->getConfig instead of rl->getConfig"

This commit is contained in:
jenkins-bot 2019-04-17 18:56:50 +00:00 committed by Gerrit Code Review
commit bca942974b

View file

@ -48,7 +48,7 @@ class VisualEditorDataModule extends ResourceLoaderModule {
* @return array[] Messages in various states of parsing
*/
protected function getMessageInfo( ResourceLoaderContext $context ) {
$editSubmitButtonLabelPublish = $context->getResourceLoader()->getConfig()
$editSubmitButtonLabelPublish = $this->getConfig()
->get( 'EditSubmitButtonLabelPublish' );
$saveButtonLabelKey = $editSubmitButtonLabelPublish ? 'publishpage' : 'savearticle';
$saveButtonLabel = $context->msg( $saveButtonLabelKey )->text();