Fix #2352 make $tpl_path in templates backward compatible with XE

This commit is contained in:
Kijin Sung 2024-05-25 01:03:38 +09:00
parent 7af4f93175
commit 1d42b6bde4

View file

@ -461,7 +461,7 @@ class Template
{ {
// Import Context and lang as local variables. // Import Context and lang as local variables.
$__Context = $this->vars ?: \Context::getAll(); $__Context = $this->vars ?: \Context::getAll();
$__Context->tpl_path = $this->absolute_dirname; $__Context->tpl_path = './' . $this->relative_dirname;
// Start the output buffer. // Start the output buffer.
$this->_ob_level = ob_get_level(); $this->_ob_level = ob_get_level();