- changed name of {template} tag to {function}

This commit is contained in:
Uwe.Tews
2009-04-24 22:36:12 +00:00
parent e315782819
commit 4f4f2d3dd3
5 changed files with 31 additions and 30 deletions

View File

@@ -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) {