X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=fb6c3e6768dd0ff61e595f777e7433176612e54a;hb=2c66553ed35d2bca60dfb087a9b501b5ec33d4fb;hp=82d3955599eba944886c3a1896ce25a233b2a070;hpb=5a3c14539c45d39e5e408d4c4174a1e2f9756b80;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index 82d3955599..fb6c3e6768 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -40,7 +40,6 @@ if ( function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc() ) { . 'for help on how to disable magic quotes.' ); } - # bug 15461: 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. @@ -91,7 +90,6 @@ if ( file_exists( "$IP/StartProfiler.php" ) ) { require "$IP/StartProfiler.php"; } - # Load default settings require_once "$IP/includes/DefaultSettings.php"; @@ -103,8 +101,11 @@ if ( is_readable( "$IP/vendor/autoload.php" ) ) { require_once "$IP/vendor/autoload.php"; } -# assert that composer dependencies were successfully loaded -if ( !interface_exists( '\Psr\Log\LoggerInterface' ) ) { +# Assert that composer dependencies were successfully loaded +# Purposely no leading \ due to it breaking HHVM RepoAuthorative mode +# PHP works fine with both versions +# See https://github.com/facebook/hhvm/issues/5833 +if ( !interface_exists( 'Psr\Log\LoggerInterface' ) ) { $message = ( 'MediaWiki requires the PSR-3 logging ' . "library to be present. This library is not embedded directly in MediaWiki's " . @@ -138,7 +139,6 @@ if ( defined( 'MW_CONFIG_CALLBACK' ) ) { require_once MW_CONFIG_FILE; } - # 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