2010-10-14 16:42:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class WikiEditorSeleniumConfig {
|
2011-09-13 08:56:32 +00:00
|
|
|
|
|
|
|
public static function getSettings( &$includeFiles, &$globalConfigs ) {
|
2010-10-14 16:42:56 +00:00
|
|
|
$includes = array(
|
|
|
|
'extensions/Vector/Vector.php',
|
|
|
|
'extensions/WikiEditor/WikiEditor.php'
|
|
|
|
);
|
|
|
|
$configs = array(
|
|
|
|
'wgDefaultSkin' => 'vector',
|
|
|
|
'wgWikiEditorFeatures' => array(
|
|
|
|
'toolbar' => array( 'global' => true, 'user' => true ),
|
|
|
|
'dialogs' => array( 'global' => true, 'user' => true )
|
|
|
|
),
|
|
|
|
'wgVectorFeatures' => array(
|
|
|
|
'editwarning' => array( 'global' => false, 'user' => false )
|
|
|
|
)
|
|
|
|
);
|
|
|
|
$includeFiles = array_merge( $includeFiles, $includes );
|
2011-09-13 08:56:32 +00:00
|
|
|
$globalConfigs = array_merge( $globalConfigs, $configs );
|
|
|
|
return true;
|
2010-10-14 16:42:56 +00:00
|
|
|
}
|
2014-04-03 14:25:10 +00:00
|
|
|
}
|