mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- minor compiler optimizations
This commit is contained in:
@@ -825,7 +825,9 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase
|
||||
*/
|
||||
public function loadCompiler()
|
||||
{
|
||||
$this->smarty->loadPlugin($this->source->compiler_class);
|
||||
if (!class_exists($this->source->compiler_class)) {
|
||||
$this->smarty->loadPlugin($this->source->compiler_class);
|
||||
}
|
||||
$this->compiler = new $this->source->compiler_class($this->source->template_lexer_class, $this->source->template_parser_class, $this->smarty);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user