From d9bd4677ffb68cf1d0cf185f20b5d95189f64b9c Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 15 Sep 2003 12:26:23 +0000 Subject: [PATCH] little fix in _get_auto_filename() --- libs/Smarty.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 65d21d6c..8f897d95 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1856,7 +1856,7 @@ class Smarty */ function _get_auto_filename($auto_base, $auto_source = null, $auto_id = null) { - $_compile_dir_sep = $smarty->use_sub_dirs ? DIRECTORY_SEPARATOR : '^'; + $_compile_dir_sep = $this->use_sub_dirs ? DIRECTORY_SEPARATOR : '^'; if(@is_dir($auto_base)) { $_return = $auto_base . DIRECTORY_SEPARATOR; @@ -1864,7 +1864,7 @@ class Smarty // auto_base not found, try include_path $_params = array('file_path' => $auto_base); require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_include_path.php'); - smarty_core_get_include_path($_params, $smarty); + smarty_core_get_include_path($_params, $this); $_return = isset($_params['new_file_path']) ? $_params['new_file_path'] . DIRECTORY_SEPARATOR : null; }