mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 17:34:26 +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
|
||||
$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) {
|
||||
$smarty->security_policy->registerCallBacks($this);
|
||||
|
Reference in New Issue
Block a user