X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=index.php;h=5c2d290af8810144e351c04eda380db8fdadb79e;hp=791ffb1345201aaf1c0a10b8c6badc778fa8e0fe;hb=79541e1c2f19388f8e3c1ae65f0dad0673e750ee;hpb=0c2687f44eb0e8c7f480b7303f89056682ba0bfb diff --git a/index.php b/index.php index 791ffb1345..5c2d290af8 100644 --- a/index.php +++ b/index.php @@ -30,11 +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+. // phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php'; -wfEntryPointCheck( 'index.php' ); +wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'] ) ); require __DIR__ . '/includes/WebStart.php';