X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FNoLocalSettings.php;h=46e9630f3497dae06c5c42c0659ca0185ebe57f3;hb=4e567efa64cb396503c5d9250d48c23a8f18f85d;hp=b8bfd6a4f0055fb1289bc7e3aa923b069b4c5b05;hpb=8e58cebbae0f940efcf548bcde85a3b69d133e59;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/NoLocalSettings.php b/includes/NoLocalSettings.php index b8bfd6a4f0..46e9630f34 100644 --- a/includes/NoLocalSettings.php +++ b/includes/NoLocalSettings.php @@ -22,13 +22,11 @@ # T32219 : can not use pathinfo() on URLs since slashes do not match $matches = []; -$ext = 'php'; $path = '/'; foreach ( array_filter( explode( '/', $_SERVER['PHP_SELF'] ) ) as $part ) { - if ( !preg_match( '/\.(php5?)$/', $part, $matches ) ) { + if ( !preg_match( '/\.(php)$/', $part, $matches ) ) { $path .= "$part/"; } else { - $ext = $matches[1] == 'php5' ? 'php5' : 'php'; break; } } @@ -56,7 +54,6 @@ try { [ 'wgVersion' => ( isset( $wgVersion ) ? $wgVersion : 'VERSION' ), 'path' => $path, - 'ext' => $ext, 'localSettingsExists' => file_exists( MW_CONFIG_FILE ), 'installerStarted' => $installerStarted ]