mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-18 19:11:22 +00:00
27 lines
868 B
PHP
27 lines
868 B
PHP
|
<?php
|
||
|
|
||
|
class WikiEditorSeleniumConfig {
|
||
|
|
||
|
public static function getSettings(&$includeFiles, &$globalConfigs) {
|
||
|
$includes = array(
|
||
|
'extensions/Vector/Vector.php',
|
||
|
'extensions/WikiEditor/WikiEditor.php'
|
||
|
);
|
||
|
$configs = array(
|
||
|
'wgDefaultSkin' => 'vector',
|
||
|
'wgWikiEditorFeatures' => array(
|
||
|
'toolbar' => array( 'global' => true, 'user' => true ),
|
||
|
'toc' => array( 'global' => false, 'user' => false ),
|
||
|
'highlight' => array( 'global' => false, 'user' => false ),
|
||
|
'templateEditor' => array( 'global' => false, 'user' => false ),
|
||
|
'dialogs' => array( 'global' => true, 'user' => true )
|
||
|
),
|
||
|
'wgVectorFeatures' => array(
|
||
|
'editwarning' => array( 'global' => false, 'user' => false )
|
||
|
)
|
||
|
);
|
||
|
$includeFiles = array_merge( $includeFiles, $includes );
|
||
|
$globalConfigs = array_merge( $globalConfigs, $configs);
|
||
|
return true;
|
||
|
}
|
||
|
}
|