X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FNoLocalSettings.php;h=b0a6b7bd0499956298485849825259a03bc99290;hb=df212f1c916f73ea8e2bdfdf00228d551b8bd620;hp=d299ab6ff5dbe4b37631e77b3c25aff344150c5c;hpb=376879ee06871beb31ca540bbcc87843aa2fb744;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/NoLocalSettings.php b/includes/NoLocalSettings.php index d299ab6ff5..b0a6b7bd04 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() );