From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- tests/selenium/SeleniumConfig.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/selenium/SeleniumConfig.php') diff --git a/tests/selenium/SeleniumConfig.php b/tests/selenium/SeleniumConfig.php index b8cdf1c5..b1487154 100644 --- a/tests/selenium/SeleniumConfig.php +++ b/tests/selenium/SeleniumConfig.php @@ -5,7 +5,7 @@ if ( !defined( 'SELENIUMTEST' ) ) { class SeleniumConfig { - /* + /** * Retreives the Selenium configuration values from an ini file. * See sample config file in selenium_settings.ini.sample * @@ -72,14 +72,14 @@ class SeleniumConfig { return false; } $header = ''; - + $configArray = array(); - + while ( ( $line = fgets( $file ) ) !== false ) { $line = strtok( $line, "\r\n" ); - + if ( !$line || $line[0] == ';' ) continue; - + if ( $line[0] == '[' && substr( $line, -1 ) == ']' ) { $header = substr( $line, 1, -1 ); $configArray[$header] = array(); @@ -95,19 +95,19 @@ class SeleniumConfig { 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