mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
8a61077f05
Change-Id: Ib4827df15eb678b35e68319b069fe22a33d8ac78
29 lines
805 B
PHP
29 lines
805 B
PHP
<?php
|
|
/**
|
|
* ResourceLoader module for the 'ext.visualEditor.viewPageTarget.init'
|
|
* module. Necessary to incorporate the VisualEditorTabMessages
|
|
* configuration setting.
|
|
*
|
|
* @file
|
|
* @ingroup Extensions
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @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 );
|
|
}
|
|
}
|