From 022621aa40849673c0794a3c2234cadee2716f27 Mon Sep 17 00:00:00 2001 From: messju Date: Wed, 18 Jun 2003 20:31:27 +0000 Subject: [PATCH] append '.php' to all compiled templates regardless of the settings of $use_sub_dirs --- 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 c86fc89e..55de3aee 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1511,7 +1511,7 @@ reques * @var string function _get_compile_path($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 // with $auto_id names $_crc32 = '%%' . substr($_crc32,0,3) . $_dir_sep . '%%' . $_crc32; - $_res .= $_crc32 . $_filename . '.php'; + $_res .= $_crc32 . $_filename; } else { $_res .= str_replace($_dir_sep_enc,'^',urlencode($auto_source)); }