From 94e3e87a4aef0c573dc053ebf127d88fb604ca8e Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Fri, 24 May 2013 15:00:31 -0700
Subject: [PATCH] Issue #2003578 followup by chx: twig_cache() must be FALSE in
 install.php registerTwig because we don't know if files folder is writable
 yet.

---
 core/lib/Drupal/Core/CoreBundle.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Core/CoreBundle.php b/core/lib/Drupal/Core/CoreBundle.php
index 01fb02914db2..d29da837e7c8 100644
--- a/core/lib/Drupal/Core/CoreBundle.php
+++ b/core/lib/Drupal/Core/CoreBundle.php
@@ -101,7 +101,7 @@ public static function registerTwig(ContainerBuilder $container) {
         // @todo ensure garbage collection of expired files.
         // When in the installer, twig_cache must be FALSE until we know the
         // files folder is writable.
-        'cache' => ((MAINTENANCE_MODE != 'install') ? settings()->get('twig_cache', TRUE) : FALSE),
+        'cache' => drupal_installation_attempted() ? FALSE : settings()->get('twig_cache', TRUE),
         'base_template_class' => 'Drupal\Core\Template\TwigTemplate',
         // @todo Remove in followup issue
         // @see http://drupal.org/node/1712444.
-- 
GitLab