From 88a16c85b1b605d922e227c1a723c0064469f0fa Mon Sep 17 00:00:00 2001 From: andrey Date: Fri, 27 Apr 2001 19:39:31 +0000 Subject: [PATCH] Fix includes. --- Smarty_Compiler.class.php | 5 ++--- libs/Smarty_Compiler.class.php | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index d4fa68db..fd8d9c7d 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -359,8 +359,7 @@ class Smarty_Compiler extends Smarty { if (empty($attrs['file'])) { $this->_syntax_error("missing 'file' attribute in include tag"); - } else - $attrs['file'] = $this->_dequote($attrs['file']); + } foreach ($attrs as $arg_name => $arg_value) { if ($arg_name == 'file') { @@ -377,7 +376,7 @@ class Smarty_Compiler extends Smarty { "unset(\$_smarty_defined_vars['_smarty_include_tpl_file']);\n" . "unset(\$_smarty_defined_vars['_smarty_def_vars']);\n" . "unset(\$_smarty_defined_vars['_smarty_include_vars']);\n" . - "\$this->_smarty_include(\"".$_smarty_include_tpl_file."\", \$_smarty_defined_vars, array(".implode(',', (array)$arg_list)."), \$_smarty_config);\n?>"; + "\$this->_smarty_include(".$_smarty_include_tpl_file.", \$_smarty_defined_vars, array(".implode(',', (array)$arg_list)."), \$_smarty_config);\n?>"; } /*======================================================================*\ diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index d4fa68db..fd8d9c7d 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -359,8 +359,7 @@ class Smarty_Compiler extends Smarty { if (empty($attrs['file'])) { $this->_syntax_error("missing 'file' attribute in include tag"); - } else - $attrs['file'] = $this->_dequote($attrs['file']); + } foreach ($attrs as $arg_name => $arg_value) { if ($arg_name == 'file') { @@ -377,7 +376,7 @@ class Smarty_Compiler extends Smarty { "unset(\$_smarty_defined_vars['_smarty_include_tpl_file']);\n" . "unset(\$_smarty_defined_vars['_smarty_def_vars']);\n" . "unset(\$_smarty_defined_vars['_smarty_include_vars']);\n" . - "\$this->_smarty_include(\"".$_smarty_include_tpl_file."\", \$_smarty_defined_vars, array(".implode(',', (array)$arg_list)."), \$_smarty_config);\n?>"; + "\$this->_smarty_include(".$_smarty_include_tpl_file.", \$_smarty_defined_vars, array(".implode(',', (array)$arg_list)."), \$_smarty_config);\n?>"; } /*======================================================================*\