From 81e5fda87626dfe94d46be511ebc546076b1975b Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 13 Jan 2021 16:13:25 +0100 Subject: Unified brace and else if style --- it_html.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_html.class') 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$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$newline" : " />$newline"; else $result .= isset($data) || !self::$voidtags[$name] ? ">$data$newline" : ">$newline"; -- cgit v1.2.3