mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
set mtime on compile files so they match source files
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
|||||||
|
- set mtime on compile files so they match source
|
||||||
|
files (Monte, Peter Bowen)
|
||||||
- added proper support for open_basedir setting
|
- added proper support for open_basedir setting
|
||||||
(Monte, Alessandro Astarita)
|
(Monte, Alessandro Astarita)
|
||||||
- added strip variable modifier, updated docs (Monte)
|
- added strip variable modifier, updated docs (Monte)
|
||||||
|
@@ -931,7 +931,7 @@ function _generate_debug_output() {
|
|||||||
} else {
|
} else {
|
||||||
// compile template
|
// compile template
|
||||||
$this->_compile_template($tpl_file, $template_source, $template_compiled);
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -942,7 +942,7 @@ function _generate_debug_output() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->_compile_template($tpl_file, $template_source, $template_compiled);
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -961,10 +961,11 @@ function _generate_debug_output() {
|
|||||||
Function: _write_compiled_template
|
Function: _write_compiled_template
|
||||||
Purpose:
|
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
|
// we save everything into $compile_dir
|
||||||
$this->_write_file($compile_path, $template_compiled, true);
|
$this->_write_file($compile_path, $template_compiled, true);
|
||||||
|
touch($compile_path, $template_timestamp);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -931,7 +931,7 @@ function _generate_debug_output() {
|
|||||||
} else {
|
} else {
|
||||||
// compile template
|
// compile template
|
||||||
$this->_compile_template($tpl_file, $template_source, $template_compiled);
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -942,7 +942,7 @@ function _generate_debug_output() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->_compile_template($tpl_file, $template_source, $template_compiled);
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -961,10 +961,11 @@ function _generate_debug_output() {
|
|||||||
Function: _write_compiled_template
|
Function: _write_compiled_template
|
||||||
Purpose:
|
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
|
// we save everything into $compile_dir
|
||||||
$this->_write_file($compile_path, $template_compiled, true);
|
$this->_write_file($compile_path, $template_compiled, true);
|
||||||
|
touch($compile_path, $template_timestamp);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user