From de8290f2fc79435d2614affb9c9c6f95190cbdf0 Mon Sep 17 00:00:00 2001 From: mr-russ Date: Fri, 13 Apr 2007 11:18:11 +0000 Subject: [PATCH] Fix XHTML and HTML headers to output the correct valid values for each --- classes/Misc.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/classes/Misc.php b/classes/Misc.php index c3817af7..4a871c5b 100644 --- a/classes/Misc.php +++ b/classes/Misc.php @@ -2,7 +2,7 @@ /** * Class to hold various commonly used functions * - * $Id: Misc.php,v 1.140 2007/03/15 16:14:10 xzilla Exp $ + * $Id: Misc.php,v 1.141 2007/04/13 11:18:11 mr-russ Exp $ */ class Misc { @@ -359,25 +359,27 @@ header("Content-Type: text/html; charset=" . $lang['appcharset']); // Send XHTML headers, or regular HTML headers if (isset($conf['use_xhtml']) && $conf['use_xhtml']) { + $closeTag = "/"; echo "\n"; echo "\n"; echo "\n"; } else { + $closeTag = ""; echo "\n"; echo "\n"; } echo "\n"; + echo "\n"; + // Theme + echo "\n"; echo "", htmlspecialchars($appName); if ($title != '') echo " - {$title}"; echo "\n"; - echo "\n"; - - // Theme - echo "\n"; + if ($script) echo "{$script}\n"; echo "\n"; } -- 2.39.5