Skip to content

Instantly share code, notes, and snippets.

@joelpittet
Created May 24, 2013 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelpittet/5646257 to your computer and use it in GitHub Desktop.
Save joelpittet/5646257 to your computer and use it in GitHub Desktop.
installfix
diff --git a/core/lib/Drupal/Core/CoreBundle.php b/core/lib/Drupal/Core/CoreBundle.php
index 2d85f6a..7bcd33b 100644
--- a/core/lib/Drupal/Core/CoreBundle.php
+++ b/core/lib/Drupal/Core/CoreBundle.php
@@ -99,7 +99,7 @@ public static function registerTwig(ContainerBuilder $container) {
// This is saved / loaded via drupal_php_storage().
// All files can be refreshed by clearing caches.
// @todo ensure garbage collection of expired files.
- 'cache' => settings()->get('twig_cache', TRUE),
+ 'cache' => ((MAINTENANCE_MODE != 'install') ? settings()->get('twig_cache', TRUE) : FALSE),
'base_template_class' => 'Drupal\Core\Template\TwigTemplate',
// @todo Remove in followup issue
// @see http://drupal.org/node/1712444.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment