mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 05:11:36 +01:00
- removed all internal calls of Smarty::instance()
- fixed code in double quoted strings
This commit is contained in:
@@ -30,7 +30,7 @@ class Smarty_Internal_Compile_Extend extends Smarty_Internal_CompileBase {
|
||||
// $include_file = '';
|
||||
eval('$include_file = ' . $_attr['file'] . ';');
|
||||
// create template object
|
||||
$_template = new Smarty_Template ($include_file, $compiler->template);
|
||||
$_template = new Smarty_Template ($include_file, $this->compiler->smarty, $compiler->template);
|
||||
// save file dependency
|
||||
$compiler->template->properties['file_dependency'][] = array($_template->getTemplateFilepath(), $_template->getTemplateTimestamp());
|
||||
// $_old_source = preg_replace ('/' . $this->smarty->left_delimiter . 'extend\s+(?:file=)?\s*(\S+?|(["\']).+?\2)' . $this->smarty->right_delimiter . '/i', '' , $compiler->template->template_source, 1);
|
||||
|
||||
Reference in New Issue
Block a user