Fix multiple calls to the same inline template
parent
4898b9598a
commit
8b62d203b9
|
@ -246,9 +246,12 @@ class VMXTemplate
|
||||||
if (!strlen($inline))
|
if (!strlen($inline))
|
||||||
return '';
|
return '';
|
||||||
$class = 'Template_X'.md5($inline);
|
$class = 'Template_X'.md5($inline);
|
||||||
if (!($file = $this->compile($inline, '')))
|
if (!class_exists($class))
|
||||||
return NULL;
|
{
|
||||||
include $file;
|
if (!($file = $this->compile($inline, '')))
|
||||||
|
return NULL;
|
||||||
|
include $file;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue