summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_html.class6
-rwxr-xr-xtests/it_html_fasttag.t3
2 files changed, 1 insertions, 8 deletions
diff --git a/it_html.class b/it_html.class
index 35a5b11..670054c 100644
--- a/it_html.class
+++ b/it_html.class
@@ -110,7 +110,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']}']->fasttag ? it_tag('$func', \$args) : \$GLOBALS['{$this->p['name']}']->_tag('$func', \$args); }";
+ $code[$func] = "function $func() { \$args = func_get_args(); return \$GLOBALS['{$this->p['name']}']->_tag('$func', \$args); }";
}
# Create global functions for it_html methods
@@ -142,7 +142,6 @@ static function configure($p)
$ithtml->p = $p + (array)$ithtml->p;
$ithtml->hasnonewline = array_flip(explode(',', $ithtml->p['nonewlinetags']));
$ithtml->alwaysclose = array_flip(explode(',', $ithtml->p['alwaysclosetags']));
- $ithtml->fasttag = function_exists("it_tag") && ($GLOBALS['debug_fasttag'] || ($ithtml->p['name'] == "it_html" && !$ithtml->p['srclines'] && !$GLOBALS['debug_utf8check'] && $ithtml->p['charset'] == "utf-8" && !$ithtml->p['prettyprint']));
}
/**
@@ -287,9 +286,6 @@ function body($args)
*/
function _tag($name, $args)
{
- if ($this->fasttag)
- return it_tag($name, $args);
-
list($data, $attr) = it_parse_args($args);
$newline = isset($this->hasnonewline[$name]) ? "" : "\n";
diff --git a/tests/it_html_fasttag.t b/tests/it_html_fasttag.t
deleted file mode 100755
index 729c68a..0000000
--- a/tests/it_html_fasttag.t
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-`dirname $0`/it_html.t --debug fasttag "$@"