X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=index.php;h=5c2d290af8810144e351c04eda380db8fdadb79e;hb=c58f4f99856ebe4f8dd42c0d4c07bfdfa1ec74cd;hp=743f77bd27262d3d07eaebb18a6b5f7f60733c71;hpb=17914cc990c375340b688900b7782f1d7d5339fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/index.php b/index.php index 743f77bd27..5c2d290af8 100644 --- a/index.php +++ b/index.php @@ -30,12 +30,13 @@ * @file */ +define( 'MW_ENTRY_POINT', 'index' ); + // 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 +// phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php'; -// @codingStandardsIgnoreEnd -wfEntryPointCheck( 'index.php' ); +wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'] ) ); require __DIR__ . '/includes/WebStart.php';