2014-09-08 06:54:54 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ResourceLoader module for the 'ext.visualEditor.viewPageTarget.init'
|
|
|
|
* module. Necessary to incorporate the VisualEditorTabMessages
|
|
|
|
* configuration setting.
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2014-09-08 06:54:54 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
class VisualEditorViewPageTargetInitModule extends ResourceLoaderFileModule {
|
|
|
|
|
|
|
|
public function __construct(
|
|
|
|
$options = array(),
|
|
|
|
$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 );
|
|
|
|
}
|
|
|
|
}
|