mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
- fixed variables in 'file' attribute of {extend} tag
- fixed problems in modifiers (if mb string functions not present)
This commit is contained in:
@@ -26,7 +26,9 @@ class Smarty_Internal_Compile_Extend extends Smarty_Internal_CompileBase {
|
||||
$this->required_attributes = array('file');
|
||||
// check and get attributes
|
||||
$_attr = $this->_get_attributes($args);
|
||||
$include_file = trim($_attr['file'], "'");
|
||||
$_smarty_tpl = $compiler->template;
|
||||
// $include_file = '';
|
||||
eval('$include_file = '.$_attr['file'].';');
|
||||
// create template object
|
||||
$_template = new Smarty_Template ($include_file, $compiler->template);
|
||||
// save file dependency
|
||||
|
||||
Reference in New Issue
Block a user