From 54c7e8ad0c2376a79a9b647a1e031e9dc53123c3 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 6 Jul 2011 21:05:29 +0000 Subject: [PATCH] Followup r91602, forgot svn add --- includes/PHPVersionError.php | 91 ++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 includes/PHPVersionError.php diff --git a/includes/PHPVersionError.php b/includes/PHPVersionError.php new file mode 100644 index 0000000000..26823fc6ca --- /dev/null +++ b/includes/PHPVersionError.php @@ -0,0 +1,91 @@ + + + + MediaWiki {$mwVersion} + + + + + The MediaWiki logo +

MediaWiki {$mwVersion} internal error

+
+

+ {$message} +

+

+ Please consider upgrading your copy of PHP. + PHP versions less than 5.3.0 are no longer supported by the PHP Group and will not receive + security or bugfix updates. +

+

+ If for some reason you are unable to upgrade your PHP version, you will need to + download an older version + of MediaWiki from our website. See our + compatibility page + for details of which versions are compatible with prior versions of PHP. +

+
+ + +HTML; + // Handle everything that's not index.php + } else { + // So nothing thinks this is JS or CSS + $finalOutput = ( $type == 'load.php' ) ? "/* $message */" : $message; + if( $type != 'cli' ) { + header( $_SERVER['SERVER_PROTOCOL'] . ' 500 MediaWiki configuration Error', true, 500 ); + } + } + echo( "$finalOutput\n" ); + die( 1 ); +} \ No newline at end of file -- 2.20.1