summaryrefslogtreecommitdiff
path: root/includes/templates/PHP4.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
commit9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch)
tree46d1a0dee7febef5c2d57a9f7b972be16a163b3d /includes/templates/PHP4.php
parent78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff)
update to MediaWiki 1.17.0
Diffstat (limited to 'includes/templates/PHP4.php')
-rw-r--r--includes/templates/PHP4.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/templates/PHP4.php b/includes/templates/PHP4.php
index b071ebd5..69f7d55d 100644
--- a/includes/templates/PHP4.php
+++ b/includes/templates/PHP4.php
@@ -1,5 +1,7 @@
<?php
/**
+ * Template used when the installer detects that this is PHP 4
+ *
* @file
* @ingroup Templates
*/
@@ -17,7 +19,7 @@ if( isset( $_SERVER['SCRIPT_NAME'] ) ) {
} 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];
@@ -56,7 +58,7 @@ if ( preg_match( '!^(.*)/config/[^/]*.php$!', $scriptUrl, $m ) ) {
<h1>MediaWiki <?php echo htmlspecialchars( $wgVersion ); ?></h1>
<div class='error'>
<p>
- MediaWiki requires PHP 5.0.0 or higher. You are running PHP
+ MediaWiki requires PHP 5.1.x or higher. You are running PHP
<?php echo htmlspecialchars( phpversion() ); ?>.
</p>
<?php