summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-12-07 16:27:09 +0100
committerUrban Müller2017-12-07 16:27:09 +0100
commit799ec2735c645748b37c390e96aaaf67d16a353d (patch)
treeec9c10680c2a3ee0d583d37b1be5f14fcb48a92d
parent243563683270f9dfe04ec937692654881f6df3d0 (diff)
downloaditools-799ec2735c645748b37c390e96aaaf67d16a353d.tar.gz
itools-799ec2735c645748b37c390e96aaaf67d16a353d.tar.bz2
itools-799ec2735c645748b37c390e96aaaf67d16a353d.zip
remove fasttag
-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 "$@"