mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
append '.php' to all compiled templates regardless of the settings of
$use_sub_dirs
This commit is contained in:
@@ -1511,7 +1511,7 @@ reques * @var string
|
|||||||
function _get_compile_path($tpl_file)
|
function _get_compile_path($tpl_file)
|
||||||
{
|
{
|
||||||
return $this->_get_auto_filename($this->compile_dir, $tpl_file,
|
return $this->_get_auto_filename($this->compile_dir, $tpl_file,
|
||||||
$this->_compile_id);
|
$this->_compile_id) . '.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1650,7 +1650,7 @@ reques * @var string
|
|||||||
// prepend %% to avoid name conflicts with
|
// prepend %% to avoid name conflicts with
|
||||||
// with $auto_id names
|
// with $auto_id names
|
||||||
$_crc32 = '%%' . substr($_crc32,0,3) . $_dir_sep . '%%' . $_crc32;
|
$_crc32 = '%%' . substr($_crc32,0,3) . $_dir_sep . '%%' . $_crc32;
|
||||||
$_res .= $_crc32 . $_filename . '.php';
|
$_res .= $_crc32 . $_filename;
|
||||||
} else {
|
} else {
|
||||||
$_res .= str_replace($_dir_sep_enc,'^',urlencode($auto_source));
|
$_res .= str_replace($_dir_sep_enc,'^',urlencode($auto_source));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user