cvs: smarty /libs Smarty.class.php
| From: | Messju Mohr | Date: | Wed, 18 Jun 2003 20:31:27 +0000 |
| Subject: | cvs: smarty /libs Smarty.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-662@lists.php.net to get a copy of this message | ||
messju Wed Jun 18 16:31:27 2003 EDT
Modified files:
/smarty/libs Smarty.class.php
Log:
append '.php' to all compiled templates regardless of the settings of
$use_sub_dirs
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.408 smarty/libs/Smarty.class.php:1.409
--- smarty/libs/Smarty.class.php:1.408 Wed Jun 18 15:45:12 2003
+++ smarty/libs/Smarty.class.php Wed Jun 18 16:31:27 2003
@@ -42,7 +42,7 @@
* @version 2.5.0
*/
-/* $Id: Smarty.class.php,v 1.408 2003/06/18 19:45:12 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.409 2003/06/18 20:31:27 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1511,7 +1511,7 @@
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 @@
// 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));
}