mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
little fix in _get_auto_filename()
This commit is contained in:
@@ -1856,7 +1856,7 @@ class Smarty
|
|||||||
*/
|
*/
|
||||||
function _get_auto_filename($auto_base, $auto_source = null, $auto_id = null)
|
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)) {
|
if(@is_dir($auto_base)) {
|
||||||
$_return = $auto_base . DIRECTORY_SEPARATOR;
|
$_return = $auto_base . DIRECTORY_SEPARATOR;
|
||||||
@@ -1864,7 +1864,7 @@ class Smarty
|
|||||||
// auto_base not found, try include_path
|
// auto_base not found, try include_path
|
||||||
$_params = array('file_path' => $auto_base);
|
$_params = array('file_path' => $auto_base);
|
||||||
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_include_path.php');
|
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;
|
$_return = isset($_params['new_file_path']) ? $_params['new_file_path'] . DIRECTORY_SEPARATOR : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user