X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FWebStart.php;h=217ba3fbd81e73e1d245a8d001edd557b7f7ebc9;hb=0e9f24a169fdb9b9eead67d555743319dea503d7;hp=2ae72dcc0031c667040756c739d66ad77cd8348c;hpb=5ea9ec39f50bc469c368a96988af3b0e2bd478e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index 2ae72dcc00..217ba3fbd8 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -6,7 +6,7 @@ * MW_NO_SETUP is defined. * * Setup.php (if loaded) then sets up GlobalFunctions, the AutoLoader, - * and the configuration globals (though not $wgTitle). + * and the configuration globals. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -58,8 +58,8 @@ if ( $IP === false ) { $IP = realpath( '.' ) ?: dirname( __DIR__ ); } -# Load the profiler -require_once "$IP/includes/profiler/Profiler.php"; +# Grab profiling functions +require_once "$IP/includes/profiler/ProfilerFunctions.php"; $wgRUstart = wfGetRusage() ?: array(); # Start the autoloader, so that extensions can derive classes from core files @@ -111,7 +111,7 @@ wfProfileIn( 'WebStart.php-ob_start' ); # 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. -if ( !defined( 'MW_NO_OUTPUT_BUFFER' ) && ob_get_level() == 0 ) { +if ( ob_get_level() == 0 ) { require_once "$IP/includes/OutputHandler.php"; ob_start( 'wfOutputHandler' ); }