cvs: smarty /libs Smarty.class.php /libs/core core.read_cache_file.php
| From: | Messju Mohr | Date: | Wed, 18 Jun 2003 19:45:12 +0000 |
| Subject: | cvs: smarty /libs Smarty.class.php /libs/core core.read_cache_file.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-661@lists.php.net to get a copy of this message | ||
messju Wed Jun 18 15:45:12 2003 EDT
Modified files:
/smarty/libs Smarty.class.php
/smarty/libs/core core.read_cache_file.php
Log:
fixed $file_path-parameters passed to smarty_core_fetch_file_info()
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.407 smarty/libs/Smarty.class.php:1.408
--- smarty/libs/Smarty.class.php:1.407 Tue Jun 17 12:33:16 2003
+++ smarty/libs/Smarty.class.php Wed Jun 18 15:45:12 2003
@@ -42,7 +42,7 @@
* @version 2.5.0
*/
-/* $Id: Smarty.class.php,v 1.407 2003/06/17 16:33:16 mohrt Exp $ */
+/* $Id: Smarty.class.php,v 1.408 2003/06/18 19:45:12 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1069,7 +1069,7 @@
*/
function template_exists($tpl_file)
{
- $_params = array('file_path' => $this->template_dir . '/' . $tpl_file);
+ $_params = array('file_path' => $tpl_file);
require_once(SMARTY_DIR . 'core/core.fetch_file_info.php');
return smarty_core_fetch_file_info($_params, $this);
}
Index: smarty/libs/core/core.read_cache_file.php
diff -u smarty/libs/core/core.read_cache_file.php:1.2 smarty/libs/core/core.read_cache_file.php:1.3
--- smarty/libs/core/core.read_cache_file.php:1.2 Mon Jun 16 15:45:11 2003
+++ smarty/libs/core/core.read_cache_file.php Wed Jun 18 15:45:12 2003
@@ -70,7 +70,7 @@
if ($this->compile_check) {
require_once(SMARTY_DIR . 'core/core.fetch_file_info.php');
foreach (array_keys($this->_cache_info['template']) as $_template_dep) {
- $_params = array('file_path' => $this->template_dir . '/' .
$_template_dep);
+ $_params = array('file_path' => $_template_dep);
smarty_core_fetch_file_info($_params, $this);
if ($this->_cache_info['timestamp'] <
$_params['file_timestamp']) {
// template file has changed, regenerate cache