From: jervfors Date: Thu, 15 Jun 2006 21:27:24 +0000 (+0000) Subject: HTML fix. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1ce76674256f43e3daf0a08b81d134dd646121c8;p=squirrelmail.git HTML fix. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11210 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/help.php b/src/help.php index 10dc5409..2c0798c7 100644 --- a/src/help.php +++ b/src/help.php @@ -116,9 +116,10 @@ if (file_exists("../help/$squirrelmail_language")) { $user_language = 'en_US'; } else { error_box( _("Help is not available. Please contact your system administrator for assistance.")); - // display footer (closes html tags) and stop script execution + echo ''; + // Display footer (closes HTML tags) and stop script execution. $oTemplate->display('footer.tpl'); - exit(); + exit; } @@ -176,6 +177,7 @@ if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) { echo html_tag( 'ol' ); // Write the TOC chapters. + // FIXME: HTML code is not compliant. for ($i=0, $cnt = count($toc); $i < $cnt; $i++) { echo '
  • ' . $toc[$i][1] . '' . html_tag( 'ul', $toc[$i][2] ); @@ -240,7 +242,7 @@ if ( $chapter == 0 || !isset( $helpdir[$chapter-1] ) ) { $section++; $help_info = get_info($doc, $n); echo "$chapter.$section - $help_info[0]" . - html_tag( 'ul', $help_info[1] ); + $help_info[1]; $n = $help_info[3]; }