X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=index.php;h=24230923bcf45f8733cbf68e7fae9e18249a301b;hb=4798892b0d946a9470cef17b3c602316ebf6dd8a;hp=8885d0e675e763afe3596de2b44062da80146903;hpb=4960dd9b775b4f7aae2e1f1906a1f72b859415df;p=lhc%2Fweb%2Fwiklou.git diff --git a/index.php b/index.php index 8885d0e675..24230923bc 100644 --- a/index.php +++ b/index.php @@ -30,19 +30,13 @@ * @file */ -# Bail on old versions of PHP. Pretty much every other file in the codebase -# has structures (try/catch, foo()->bar(), etc etc) which throw parse errors in -# PHP 4. Setup.php and ObjectCache.php have structures invalid in PHP 5.0 and -# 5.1, respectively. -if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) { - // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ - require dirname( __FILE__ ) . '/includes/PHPVersionError.php'; - wfPHPVersionError( 'index.php' ); -} +// Bail on old versions of PHP, or if composer has not been run yet to install +// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. +// @codingStandardsIgnoreStart MediaWiki.Usage.DirUsage.FunctionFound +require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php'; +// @codingStandardsIgnoreEnd +wfEntryPointCheck( 'index.php' ); -# Initialise common code. This gives us access to GlobalFunctions, the -# AutoLoader, and the globals $wgRequest, $wgOut, $wgUser, $wgLang and -# $wgContLang, amongst others require __DIR__ . '/includes/WebStart.php'; $mediaWiki = new MediaWiki();