Merge "Improve error handling for wrong autoloader permissions"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 6 Feb 2019 01:12:51 +0000 (01:12 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 6 Feb 2019 01:12:51 +0000 (01:12 +0000)
1  2 
includes/Setup.php

diff --combined includes/Setup.php
@@@ -67,6 -67,8 +67,8 @@@ require_once "$IP/includes/GlobalFuncti
  // Load composer's autoloader if present
  if ( is_readable( "$IP/vendor/autoload.php" ) ) {
        require_once "$IP/vendor/autoload.php";
+ } elseif ( file_exists( "$IP/vendor/autoload.php" ) ) {
+       die( "$IP/vendor/autoload.php exists but is not readable" );
  }
  
  // Assert that composer dependencies were successfully loaded
@@@ -194,6 -196,10 +196,6 @@@ if ( $wgGitInfoCacheDirectory === fals
        $wgGitInfoCacheDirectory = "{$wgCacheDirectory}/gitinfo";
  }
  
 -if ( $wgEnableParserCache === false ) {
 -      $wgParserCacheType = CACHE_NONE;
 -}
 -
  // Fix path to icon images after they were moved in 1.24
  if ( $wgRightsIcon ) {
        $wgRightsIcon = str_replace(