mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-29 02:03:31 +02:00
- make $smarty->_current_file available during compilation for Smarty2 BC
This commit is contained in:
@@ -47,7 +47,8 @@ class Smarty_Internal_TemplateCompilerBase {
|
||||
// assume successfull compiling
|
||||
$this->compile_error = false;
|
||||
// save template object in compiler class
|
||||
$this->template = $template;
|
||||
$this->template = $template;
|
||||
$this->smarty->_current_file = $this->template->getTemplateFilepath();
|
||||
// template header code
|
||||
$template_header = '';
|
||||
if (!$template->suppressHeader) {
|
||||
|
||||
Reference in New Issue
Block a user