mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 09:54:27 +02:00
Load compiled object in template constructor so it will be cached.
This commit is contained in:
@@ -131,7 +131,8 @@ class Template extends TemplateBase {
|
|||||||
// Template resource
|
// Template resource
|
||||||
$this->template_resource = $template_resource;
|
$this->template_resource = $template_resource;
|
||||||
|
|
||||||
$this->setSource($_isConfig ? Config::load($this) : Source::load($this));
|
$this->source = $_isConfig ? Config::load($this) : Source::load($this);
|
||||||
|
$this->compiled = Compiled::load($this);
|
||||||
|
|
||||||
if ($smarty->security_policy) {
|
if ($smarty->security_policy) {
|
||||||
$smarty->security_policy->registerCallBacks($this);
|
$smarty->security_policy->registerCallBacks($this);
|
||||||
|
Reference in New Issue
Block a user