*** empty log message ***

This commit is contained in:
mohrt
2003-06-04 13:50:50 +00:00
parent 51246eb424
commit 06b4bddd47
2 changed files with 12 additions and 10 deletions

2
NEWS
View File

@@ -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 behaviour of start=... for {counter} (messju)
- fixed assign for {counter} (messju) - fixed assign for {counter} (messju)
- added params vdir, hdir and inner to html_table to allow looping - added params vdir, hdir and inner to html_table to allow looping

View File

@@ -1389,15 +1389,15 @@ class Smarty
if (!$this->_execute_core_function('fetch_template_info', $_params)) { if (!$this->_execute_core_function('fetch_template_info', $_params)) {
return false; return false;
} }
$template_source = $_params['template_source']; $_template_source = $_params['template_source'];
$template_timestamp = $_params['template_timestamp']; $_template_timestamp = $_params['template_timestamp'];
if ($template_timestamp <= filemtime($compile_path)) { if ($_template_timestamp <= filemtime($compile_path)) {
// template not expired, no recompile // template not expired, no recompile
return true; return true;
} else { } else {
// compile template // compile template
$this->_compile_template($tpl_file, $template_source, $template_compiled); $this->_compile_template($tpl_file, $_template_source, $_template_compiled);
$_params = array('compile_path' => $compile_path, 'template_compiled' => $template_compiled, 'template_timestamp' => $template_timestamp); $_params = array('compile_path' => $compile_path, 'template_compiled' => $_template_compiled, 'template_timestamp' => $_template_timestamp);
$this->_execute_core_function('write_compiled_template', $_params); $this->_execute_core_function('write_compiled_template', $_params);
return true; return true;
} }
@@ -1408,10 +1408,10 @@ class Smarty
if (!$this->_execute_core_function('fetch_template_info', $_params)) { if (!$this->_execute_core_function('fetch_template_info', $_params)) {
return false; return false;
} }
$template_source = $_params['template_source']; $_template_source = $_params['template_source'];
$template_timestamp = $_params['template_timestamp']; $_template_timestamp = $_params['template_timestamp'];
$this->_compile_template($tpl_file, $template_source, $template_compiled); $this->_compile_template($tpl_file, $_template_source, $_template_compiled);
$_params = array('compile_path' => $compile_path, 'template_compiled' => $template_compiled, 'template_timestamp' => $template_timestamp); $_params = array('compile_path' => $compile_path, 'template_compiled' => $_template_compiled, 'template_timestamp' => $_template_timestamp);
$this->_execute_core_function('write_compiled_template', $_params); $this->_execute_core_function('write_compiled_template', $_params);
return true; return true;
} }
@@ -1594,7 +1594,7 @@ class Smarty
// auto_base not found, try include_path // auto_base not found, try include_path
$_params = array('file_path' => $auto_base); $_params = array('file_path' => $auto_base);
$this->_execute_core_function('get_include_path', $_params); $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)) { if(isset($auto_id)) {