projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f5f1485
)
Reset globals when a new global is added
author
Jordi Boggiano
<j.boggiano@seld.be>
Mon, 16 Jan 2012 14:22:29 +0000 (15:22 +0100)
committer
Jordi Boggiano
<j.boggiano@seld.be>
Mon, 16 Jan 2012 14:22:29 +0000 (15:22 +0100)
lib/Twig/Environment.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Environment.php
b/lib/Twig/Environment.php
index
f6eac6c
..
c026687
100644
(file)
--- 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;
}
/**