X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=878dd3eca55f85b9480fb5e0fae9d5fb17fb40e5;hb=dd6b5515bf8d3c10a3161d04a58a4ee701d90b09;hp=be95779af31a6523b3927e0859144ff045b2c8da;hpb=2ef178072f6f46abde7bdcc2630389a8b2837557;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index be95779af3..878dd3eca5 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 @@ -78,14 +65,10 @@ if ( !defined( 'MW_CONFIG_CALLBACK' ) ) { // Custom setup for WebStart entry point if ( !defined( 'MW_SETUP_CALLBACK' ) ) { function wfWebStartSetup() { - # Initialise output buffering - # Check that there is no previous output or previously set up buffers, because - # that would cause us to potentially mix gzip and non-gzip output, creating a - # big mess. - global $IP; + // Initialise output buffering + // Check for previously set up buffers, to avoid a mix of gzip and non-gzip output. if ( ob_get_level() == 0 ) { - require_once "$IP/includes/OutputHandler.php"; - ob_start( 'wfOutputHandler' ); + ob_start( 'MediaWiki\\OutputHandler::handle' ); } } define( 'MW_SETUP_CALLBACK', 'wfWebStartSetup' );