mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-15 15:09:51 +01:00
- changed name of {template} tag to {function}
This commit is contained in:
@@ -112,10 +112,10 @@ class Smarty_Internal_TemplateCompilerBase extends Smarty_Internal_Base {
|
||||
$this->has_code = true;
|
||||
$this->has_output = false;
|
||||
// compile the smarty tag (required compile classes to compile the tag are autoloaded)
|
||||
if (isset($this->template->properties['template'][$tag])) {
|
||||
if (isset($this->template->properties['function'][$tag])) {
|
||||
// template defined by {template} tag
|
||||
$args['name'] = $tag;
|
||||
$tag = 'templatecall';
|
||||
$tag = 'internalfunctioncall';
|
||||
}
|
||||
if (!($_output = $this->$tag($args, $this)) === false) {
|
||||
if ($_output !== true) {
|
||||
|
||||
Reference in New Issue
Block a user