mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "DataModule: Use module->getConfig instead of rl->getConfig"
This commit is contained in:
commit
bca942974b
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue