diff options
author | Urban Müller | 2012-08-08 13:31:58 +0000 |
---|---|---|
committer | Urban Müller | 2012-08-08 13:31:58 +0000 |
commit | 362fc6c961f7dcb658c9393acd293f203f190f53 (patch) | |
tree | 5a66c60e636b1ed256f1f13d5d98470384e3ba92 | |
parent | f5809b8a1d40ee092e6ba656233ecf7df3581ce5 (diff) | |
download | itools-362fc6c961f7dcb658c9393acd293f203f190f53.tar.gz itools-362fc6c961f7dcb658c9393acd293f203f190f53.tar.bz2 itools-362fc6c961f7dcb658c9393acd293f203f190f53.zip |
save one function call
-rw-r--r-- | it_html.class | 2 |
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 |