dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert Special:EmailUser to use OOUIHTMLForm
[lhc/web/wiklou.git]
/
includes
/
NoLocalSettings.php
diff --git
a/includes/NoLocalSettings.php
b/includes/NoLocalSettings.php
index
b8bfd6a
..
f6f4cd3
100644
(file)
--- 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 = [];
# 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 ) {
$path = '/';
foreach ( array_filter( explode( '/', $_SERVER['PHP_SELF'] ) ) as $part ) {
- if ( !preg_match( '/\.(php
5?
)$/', $part, $matches ) ) {
+ if ( !preg_match( '/\.(php)$/', $part, $matches ) ) {
$path .= "$part/";
} else {
$path .= "$part/";
} else {
- $ext = $matches[1] == 'php5' ? 'php5' : 'php';
break;
}
}
break;
}
}
@@
-54,9
+52,8
@@
try {
echo $templateParser->processTemplate(
'NoLocalSettings',
[
echo $templateParser->processTemplate(
'NoLocalSettings',
[
- 'wgVersion' => (
isset( $wgVersion ) ? $wgVersion :
'VERSION' ),
+ 'wgVersion' => (
$wgVersion ??
'VERSION' ),
'path' => $path,
'path' => $path,
- 'ext' => $ext,
'localSettingsExists' => file_exists( MW_CONFIG_FILE ),
'installerStarted' => $installerStarted
]
'localSettingsExists' => file_exists( MW_CONFIG_FILE ),
'installerStarted' => $installerStarted
]