set mtime on compile files so they match source files

This commit is contained in:
mohrt
2002-10-29 15:50:05 +00:00
parent 24383467f4
commit fdbd20d151
3 changed files with 10 additions and 6 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- set mtime on compile files so they match source
files (Monte, Peter Bowen)
- added proper support for open_basedir setting
(Monte, Alessandro Astarita)
- added strip variable modifier, updated docs (Monte)

View File

@@ -931,7 +931,7 @@ function _generate_debug_output() {
} else {
// compile template
$this->_compile_template($tpl_file, $template_source, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled, $template_timestamp);
return true;
}
}
@@ -942,7 +942,7 @@ function _generate_debug_output() {
return false;
}
$this->_compile_template($tpl_file, $template_source, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled, $template_timestamp);
return true;
}
}
@@ -961,10 +961,11 @@ function _generate_debug_output() {
Function: _write_compiled_template
Purpose:
\*======================================================================*/
function _write_compiled_template($compile_path, $template_compiled)
function _write_compiled_template($compile_path, $template_compiled, $template_timestamp)
{
// we save everything into $compile_dir
$this->_write_file($compile_path, $template_compiled, true);
touch($compile_path, $template_timestamp);
return true;
}

View File

@@ -931,7 +931,7 @@ function _generate_debug_output() {
} else {
// compile template
$this->_compile_template($tpl_file, $template_source, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled, $template_timestamp);
return true;
}
}
@@ -942,7 +942,7 @@ function _generate_debug_output() {
return false;
}
$this->_compile_template($tpl_file, $template_source, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled);
$this->_write_compiled_template($compile_path, $template_compiled, $template_timestamp);
return true;
}
}
@@ -961,10 +961,11 @@ function _generate_debug_output() {
Function: _write_compiled_template
Purpose:
\*======================================================================*/
function _write_compiled_template($compile_path, $template_compiled)
function _write_compiled_template($compile_path, $template_compiled, $template_timestamp)
{
// we save everything into $compile_dir
$this->_write_file($compile_path, $template_compiled, true);
touch($compile_path, $template_timestamp);
return true;
}