mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- make $smarty->_current_file available during compilation for Smarty2 BC
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
11/18/2009
|
11/18/2009
|
||||||
- observe umask settings when setting file permissions
|
- observe umask settings when setting file permissions
|
||||||
- avoide unneeded cache file creation for subtemplates which did occur in some situations
|
- avoide unneeded cache file creation for subtemplates which did occur in some situations
|
||||||
|
- make $smarty->_current_file available during compilation for Smarty2 BC
|
||||||
|
|
||||||
11/17/2009
|
11/17/2009
|
||||||
- sanitize compile_id and cache_id (replace illegal chars with _)
|
- sanitize compile_id and cache_id (replace illegal chars with _)
|
||||||
|
@@ -47,7 +47,8 @@ class Smarty_Internal_TemplateCompilerBase {
|
|||||||
// assume successfull compiling
|
// assume successfull compiling
|
||||||
$this->compile_error = false;
|
$this->compile_error = false;
|
||||||
// save template object in compiler class
|
// save template object in compiler class
|
||||||
$this->template = $template;
|
$this->template = $template;
|
||||||
|
$this->smarty->_current_file = $this->template->getTemplateFilepath();
|
||||||
// template header code
|
// template header code
|
||||||
$template_header = '';
|
$template_header = '';
|
||||||
if (!$template->suppressHeader) {
|
if (!$template->suppressHeader) {
|
||||||
|
Reference in New Issue
Block a user