From 362fc6c961f7dcb658c9393acd293f203f190f53 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 8 Aug 2012 13:31:58 +0000 Subject: save one function call --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_html.class') diff --git a/it_html.class b/it_html.class index fa99af8..1c34894 100644 --- a/it_html.class +++ b/it_html.class @@ -107,7 +107,7 @@ function it_html($p = array()) foreach (array_merge(explode(',', $this->p['tags']), explode(',', $this->p['moretags'])) as $func) { if (!function_exists($func) && $func) - $code[$func] = "function $func() { \$args = func_get_args(); return \$GLOBALS['{$this->p['name']}']->_tag('$func', \$args); }"; + $code[$func] = "function $func() { \$args = func_get_args(); return \$GLOBALS['{$this->p['name']}']->fasttag ? it_tag('$func', \$args) : \$GLOBALS['{$this->p['name']}']->_tag('$func', \$args); }"; } # Create global functions for it_html methods -- cgit v1.2.3