diff --git a/core/lib/Drupal/Core/Template/TwigEnvironment.php b/core/lib/Drupal/Core/Template/TwigEnvironment.php index ad5d0f0..a65fef3 100644 --- a/core/lib/Drupal/Core/Template/TwigEnvironment.php +++ b/core/lib/Drupal/Core/Template/TwigEnvironment.php @@ -120,7 +120,7 @@ public function getCacheFilename($name) { // and their mtime. // @see \Drupal\Core\DependencyInjection\Compiler\TwigExtensionPass - if (!$this->cache) { + if (!$this->getCache()) { return FALSE; } diff --git a/core/vendor/twig/twig/lib/Twig/Environment.php b/core/vendor/twig/twig/lib/Twig/Environment.php index 79726ec..94364a2 100644 --- a/core/vendor/twig/twig/lib/Twig/Environment.php +++ b/core/vendor/twig/twig/lib/Twig/Environment.php @@ -34,7 +34,7 @@ class Twig_Environment private $tests; private $functions; private $globals; - private $runtimeInitialized = false; + protected $runtimeInitialized = false; private $extensionInitialized = false; private $loadedTemplates; private $strictVariables;