From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- tests/selenium/SeleniumConfig.php | 113 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 tests/selenium/SeleniumConfig.php (limited to 'tests/selenium/SeleniumConfig.php') diff --git a/tests/selenium/SeleniumConfig.php b/tests/selenium/SeleniumConfig.php new file mode 100644 index 00000000..b8cdf1c5 --- /dev/null +++ b/tests/selenium/SeleniumConfig.php @@ -0,0 +1,113 @@ + false, 'true' => true, 'null' => null ); + list( $key, $value ) = explode( '=', $iniLine, 2 ); + $key = trim( $key ); + $value = trim( $value ); + + if ( isset( $specialValues[$value] ) ) { + $value = $specialValues[$value]; + } else { + $value = trim( $value, '"' ); + } + + /* Support one-level arrays */ + if ( preg_match( '/^([A-Za-z]+)\[([A-Za-z]+)\]/', $key, $m ) ) { + $key = $m[1]; + $value = array( $m[2] => $value ); + } + + return array( $key => $value ); + } +} -- cgit v1.2.3-54-g00ecf