X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=c83fdea5115b73249da15fec30d5dafcecaecf06;hb=2c35b5be5f8fc477cdd7e4d832de58de3a6ca3d9;hp=c9aecce4e01a51b53f17215cfed027b638c5f221;hpb=969293ba563c007832c439bb56f584ea201ffc24;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index c9aecce4e0..c83fdea511 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -25,24 +25,11 @@ * @file */ -if ( ini_get( 'mbstring.func_overload' ) ) { - die( 'MediaWiki does not support installations where mbstring.func_overload is non-zero.' ); -} - # T17461: Make IE8 turn off content sniffing. Everybody else should ignore this # We're adding it here so that it's *always* set, even for alternate entry # points and when $wgOut gets disabled or overridden. header( 'X-Content-Type-Options: nosniff' ); -/** - * @var float Request start time as fractional seconds since epoch - * @deprecated since 1.25; use $_SERVER['REQUEST_TIME_FLOAT'] or - * WebRequest::getElapsedTime() instead. - */ -$wgRequestTime = $_SERVER['REQUEST_TIME_FLOAT']; - -unset( $IP ); - # Valid web server entry point, enable includes. # Please don't move this line to includes/Defines.php. This line essentially # defines a valid entry point. If you put it in includes/Defines.php, then @@ -63,6 +50,7 @@ if ( !defined( 'MW_CONFIG_CALLBACK' ) ) { define( 'MW_CONFIG_FILE', "$IP/LocalSettings.php" ); } if ( !is_readable( MW_CONFIG_FILE ) ) { + function wfWebStartNoLocalSettings() { # LocalSettings.php is the per-site customization file. If it does not exist # the wiki installer needs to be launched or the generated file uploaded to @@ -71,12 +59,14 @@ if ( !defined( 'MW_CONFIG_CALLBACK' ) ) { require_once "$IP/includes/NoLocalSettings.php"; die(); } + define( 'MW_CONFIG_CALLBACK', 'wfWebStartNoLocalSettings' ); } } // Custom setup for WebStart entry point if ( !defined( 'MW_SETUP_CALLBACK' ) ) { + function wfWebStartSetup() { // Initialise output buffering // Check for previously set up buffers, to avoid a mix of gzip and non-gzip output. @@ -84,6 +74,7 @@ if ( !defined( 'MW_SETUP_CALLBACK' ) ) { ob_start( 'MediaWiki\\OutputHandler::handle' ); } } + define( 'MW_SETUP_CALLBACK', 'wfWebStartSetup' ); }