From: Jordi Boggiano Date: Mon, 16 Jan 2012 14:22:29 +0000 (+0100) Subject: Reset globals when a new global is added X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3db62dae4bd35909275acf2d5f97d2fb8a595aab;p=web%2Fkonrad%2Ftwig.git Reset globals when a new global is added --- diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index f6eac6c..c026687 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -935,6 +935,7 @@ class Twig_Environment public function addGlobal($name, $value) { $this->staging['globals'][$name] = $value; + $this->globals = null; } /**