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
Fix mention of needing 5.1.X or higher in PHP4 file
[lhc/web/wiklou.git]
/
includes
/
templates
/
PHP4.php
diff --git
a/includes/templates/PHP4.php
b/includes/templates/PHP4.php
index
511ce71
..
6f48238
100644
(file)
--- a/
includes/templates/PHP4.php
+++ b/
includes/templates/PHP4.php
@@
-19,7
+19,7
@@
if( isset( $_SERVER['SCRIPT_NAME'] ) ) {
} else {
$scriptUrl = '';
}
} else {
$scriptUrl = '';
}
-if ( preg_match( '!^(.*)/config/[^/]*.php$!', $scriptUrl, $m ) ) {
+if ( preg_match( '!^(.*)/
(mw-)?
config/[^/]*.php$!', $scriptUrl, $m ) ) {
$baseUrl = $m[1];
} elseif ( preg_match( '!^(.*)/[^/]*.php$!', $scriptUrl, $m ) ) {
$baseUrl = $m[1];
$baseUrl = $m[1];
} elseif ( preg_match( '!^(.*)/[^/]*.php$!', $scriptUrl, $m ) ) {
$baseUrl = $m[1];
@@
-58,7
+58,7
@@
if ( preg_match( '!^(.*)/config/[^/]*.php$!', $scriptUrl, $m ) ) {
<h1>MediaWiki <?php echo htmlspecialchars( $wgVersion ); ?></h1>
<div class='error'>
<p>
<h1>MediaWiki <?php echo htmlspecialchars( $wgVersion ); ?></h1>
<div class='error'>
<p>
- MediaWiki requires PHP 5.
1.x
or higher. You are running PHP
+ MediaWiki requires PHP 5.
2.3
or higher. You are running PHP
<?php echo htmlspecialchars( phpversion() ); ?>.
</p>
<?php
<?php echo htmlspecialchars( phpversion() ); ?>.
</p>
<?php