2014-09-08 06:54:54 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-07-29 13:41:30 +00:00
|
|
|
* ResourceLoader module for the 'ext.visualEditor.desktopArticleTarget.init'
|
2014-09-08 06:54:54 +00:00
|
|
|
* module. Necessary to incorporate the VisualEditorTabMessages
|
|
|
|
* configuration setting.
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2018-01-03 00:54:47 +00:00
|
|
|
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
|
2018-03-28 19:47:04 +00:00
|
|
|
* @license MIT
|
2014-09-08 06:54:54 +00:00
|
|
|
*/
|
|
|
|
|
2015-07-29 13:41:30 +00:00
|
|
|
class VisualEditorDesktopArticleTargetInitModule extends ResourceLoaderFileModule {
|
2014-09-08 06:54:54 +00:00
|
|
|
|
2018-03-28 19:47:04 +00:00
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2014-09-08 06:54:54 +00:00
|
|
|
public function __construct(
|
2016-02-17 16:18:02 +00:00
|
|
|
$options = [],
|
2014-09-08 06:54:54 +00:00
|
|
|
$localBasePath = null,
|
|
|
|
$remoteBasePath = null
|
|
|
|
) {
|
|
|
|
$veConfig = ConfigFactory::getDefaultInstance()->makeConfig( 'visualeditor' );
|
|
|
|
$options['messages'] = array_merge(
|
|
|
|
$options['messages'],
|
|
|
|
array_filter( $veConfig->get( 'VisualEditorTabMessages' ) )
|
|
|
|
);
|
|
|
|
|
|
|
|
parent::__construct( $options, $localBasePath, $remoteBasePath );
|
|
|
|
}
|
|
|
|
}
|