little fix in _get_auto_filename()

This commit is contained in:
messju
2003-09-15 12:26:23 +00:00
parent 1b2513649b
commit d9bd4677ff

View File

@@ -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;
}