summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2012-08-08 13:31:58 +0000
committerUrban Müller2012-08-08 13:31:58 +0000
commit362fc6c961f7dcb658c9393acd293f203f190f53 (patch)
tree5a66c60e636b1ed256f1f13d5d98470384e3ba92
parentf5809b8a1d40ee092e6ba656233ecf7df3581ce5 (diff)
downloaditools-362fc6c961f7dcb658c9393acd293f203f190f53.tar.gz
itools-362fc6c961f7dcb658c9393acd293f203f190f53.tar.bz2
itools-362fc6c961f7dcb658c9393acd293f203f190f53.zip
save one function call
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
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