cvs: smarty / NEWS /libs Smarty.class.php
| From: | Monte Ohrt | Date: | Wed, 04 Jun 2003 13:50:51 +0000 |
| Subject: | cvs: smarty / NEWS /libs Smarty.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-624@lists.php.net to get a copy of this message | ||
mohrt Wed Jun 4 09:50:51 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
Index: smarty/NEWS
diff -u smarty/NEWS:1.367 smarty/NEWS:1.368
--- smarty/NEWS:1.367 Tue Jun 3 09:22:41 2003
+++ smarty/NEWS Wed Jun 4 09:50:50 2003
@@ -1,3 +1,5 @@
+ - add discrete error checking pertaining to $cache_dir
+ and $compile_dir, their existance and writability (Monte)
- fixed behaviour of start=... for {counter} (messju)
- fixed assign for {counter} (messju)
- added params vdir, hdir and inner to html_table to allow looping
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.397 smarty/libs/Smarty.class.php:1.398
--- smarty/libs/Smarty.class.php:1.397 Mon May 12 03:53:57 2003
+++ smarty/libs/Smarty.class.php Wed Jun 4 09:50:50 2003
@@ -42,7 +42,7 @@
* @version 2.5.0
*/
-/* $Id: Smarty.class.php,v 1.397 2003/05/12 07:53:57 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.398 2003/06/04 13:50:50 mohrt Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1389,15 +1389,15 @@
if (!$this->_execute_core_function('fetch_template_info', $_params)) {
return false;
}
- $template_source = $_params['template_source'];
- $template_timestamp = $_params['template_timestamp'];
- if ($template_timestamp <= filemtime($compile_path)) {
+ $_template_source = $_params['template_source'];
+ $_template_timestamp = $_params['template_timestamp'];
+ if ($_template_timestamp <= filemtime($compile_path)) {
// template not expired, no recompile
return true;
} else {
// compile template
- $this->_compile_template($tpl_file, $template_source, $template_compiled);
- $_params = array('compile_path' => $compile_path, 'template_compiled'
=> $template_compiled, 'template_timestamp' => $template_timestamp);
+ $this->_compile_template($tpl_file, $_template_source, $_template_compiled);
+ $_params = array('compile_path' => $compile_path, 'template_compiled'
=> $_template_compiled, 'template_timestamp' => $_template_timestamp);
$this->_execute_core_function('write_compiled_template', $_params);
return true;
}
@@ -1408,10 +1408,10 @@
if (!$this->_execute_core_function('fetch_template_info', $_params)) {
return false;
}
- $template_source = $_params['template_source'];
- $template_timestamp = $_params['template_timestamp'];
- $this->_compile_template($tpl_file, $template_source, $template_compiled);
- $_params = array('compile_path' => $compile_path, 'template_compiled'
=> $template_compiled, 'template_timestamp' => $template_timestamp);
+ $_template_source = $_params['template_source'];
+ $_template_timestamp = $_params['template_timestamp'];
+ $this->_compile_template($tpl_file, $_template_source, $_template_compiled);
+ $_params = array('compile_path' => $compile_path, 'template_compiled'
=> $_template_compiled, 'template_timestamp' => $_template_timestamp);
$this->_execute_core_function('write_compiled_template', $_params);
return true;
}
@@ -1594,7 +1594,7 @@
// auto_base not found, try include_path
$_params = array('file_path' => $auto_base);
$this->_execute_core_function('get_include_path', $_params);
- $_res = $_params['new_file_path'] . DIRECTORY_SEPARATOR;
+ $_res = isset($_params['new_file_path']) ?
$_params['new_file_path'] . DIRECTORY_SEPARATOR : null;
}
if(isset($auto_id)) {