mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
Reset globals when a new global is added
This commit is contained in:
@@ -935,6 +935,7 @@ class Twig_Environment
|
|||||||
public function addGlobal($name, $value)
|
public function addGlobal($name, $value)
|
||||||
{
|
{
|
||||||
$this->staging['globals'][$name] = $value;
|
$this->staging['globals'][$name] = $value;
|
||||||
|
$this->globals = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user