From 6e9b4f0e9ce4ccd6089c18b205065ef7fa077484 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 17 Feb 2016 01:09:32 -0800 Subject: Convert all array() syntax to [] Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b --- includes/NoLocalSettings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/NoLocalSettings.php') diff --git a/includes/NoLocalSettings.php b/includes/NoLocalSettings.php index d299ab6ff5db..b0a6b7bd0499 100644 --- a/includes/NoLocalSettings.php +++ b/includes/NoLocalSettings.php @@ -21,7 +21,7 @@ */ # bug 30219 : can not use pathinfo() on URLs since slashes do not match -$matches = array(); +$matches = []; $ext = 'php'; $path = '/'; foreach ( array_filter( explode( '/', $_SERVER['PHP_SELF'] ) ) as $part ) { @@ -52,13 +52,13 @@ $templateParser = new TemplateParser(); try { echo $templateParser->processTemplate( 'NoLocalSettings', - array( + [ 'wgVersion' => ( isset( $wgVersion ) ? $wgVersion : 'VERSION' ), 'path' => $path, 'ext' => $ext, 'localSettingsExists' => file_exists( MW_CONFIG_FILE ), 'installerStarted' => $installerStarted - ) + ] ); } catch ( Exception $e ) { echo 'Error: ' . htmlspecialchars( $e->getMessage() ); -- cgit v1.2.3