]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/templates/PHP4.php
MediaWiki 1.17.0
[autoinstallsdev/mediawiki.git] / includes / templates / PHP4.php
index 058351a00613183959cd643add51068cbca054cf..69f7d55d2a0e9c9c5a850812216b779ebeddb930 100644 (file)
@@ -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];
@@ -27,11 +29,11 @@ if ( preg_match( '!^(.*)/config/[^/]*.php$!', $scriptUrl, $m ) ) {
 
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
+<html xmlns='http://www.w3.org/1999/xhtml' lang='en'>
        <head>
                <title>MediaWiki <?php echo htmlspecialchars( $wgVersion ); ?></title>
                <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
-               <style type='text/css' media='screen, projection'>
+               <style type='text/css' media='screen'>
                        html, body {
                                color: #000;
                                background-color: #fff;
@@ -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