summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorChristian Schneider2021-01-13 16:13:25 +0100
committerChristian Schneider2021-01-13 16:13:25 +0100
commit81e5fda87626dfe94d46be511ebc546076b1975b (patch)
tree9669ecb252500e514ff932df2e1036ab13cf8008 /it_html.class
parent1f57cc663c83ec44ec292256147f9811945e260a (diff)
downloaditools-81e5fda87626dfe94d46be511ebc546076b1975b.tar.gz
itools-81e5fda87626dfe94d46be511ebc546076b1975b.tar.bz2
itools-81e5fda87626dfe94d46be511ebc546076b1975b.zip
Unified brace and else if style
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_html.class b/it_html.class
index 6ddbab9..b27c696 100644
--- a/it_html.class
+++ b/it_html.class
@@ -207,7 +207,7 @@ function head($args = array())
# Add favicon
if ($p['favicon'])
$header .= tag('link', array('rel' => "shortcut icon", 'href' => $p['favicon']));
- elseif ($p['show_favicon'] && @file_exists($_SERVER['DOCUMENT_ROOT'] . '/favicon.ico'))
+ else if ($p['show_favicon'] && @file_exists($_SERVER['DOCUMENT_ROOT'] . '/favicon.ico'))
$header .= tag('link', array('rel' => "shortcut icon", 'href' => "/favicon.ico"));
foreach((array)$p['stylesheets'] as $type => $url)
@@ -312,7 +312,7 @@ function _tag($name, $args)
# close tag according to html dialect
if ($this->p['htmltype'] == 'xml') # plain xml
$result .= isset($data) ? ">$data</$name>$newline" : " />$newline";
- elseif ($this->p['htmltype'][0] == 'x') # xhtml: only voidtags can be shortened
+ else if ($this->p['htmltype'][0] == 'x') # xhtml: only voidtags can be shortened
$result .= isset($data) || !self::$voidtags[$name] ? ">$data</$name>$newline" : " />$newline";
else
$result .= isset($data) || !self::$voidtags[$name] ? ">$data</$name>$newline" : ">$newline";