From f05fa0a5b17ca7004255e634167c04c3dd36f974 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 11 Oct 2006 18:22:45 +0000 Subject: [PATCH] * (bug 7545) Fix PHP version check on install --- RELEASE-NOTES | 1 + config/index.php | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 92b9e4228c..104bb17205 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -32,6 +32,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN screen sizes, for the default monobook skin. * Fix PHP notice and estimates for dumpBackup.php and friends * Improved register_globals paranoia checks +* (bug 7545) Fix PHP version check on install == Languages updated == diff --git a/config/index.php b/config/index.php index c74d2bd26d..5443614ef2 100644 --- a/config/index.php +++ b/config/index.php @@ -37,6 +37,12 @@ if( !ini_set( "include_path", ".$sep$IP$sep$IP/includes$sep$IP/languages" ) ) { # Define an entry point and include some files define( "MEDIAWIKI", true ); define( "MEDIAWIKI_INSTALL", true ); + +// Run version checks before including other files +// so people don't see a scary parse error. +require_once( "install-utils.inc" ); +install_version_checks(); + require_once( "includes/Defines.php" ); require_once( "includes/DefaultSettings.php" ); require_once( "includes/MagicWord.php" ); -- 2.20.1