From: Brion Vibber Date: Wed, 11 Oct 2006 18:22:45 +0000 (+0000) Subject: * (bug 7545) Fix PHP version check on install X-Git-Tag: 1.31.0-rc.0~55535 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=f05fa0a5b17ca7004255e634167c04c3dd36f974;p=lhc%2Fweb%2Fwiklou.git * (bug 7545) Fix PHP version check on install --- 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" );