X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fhelp.php;h=2c0798c7d9cd671e8d5912ef17698e5b1b5adc42;hp=10dc54099ca4af4f05b0abc74c8f07cbae9fb54e;hb=1ce76674256f43e3daf0a08b81d134dd646121c8;hpb=5296610919f9cd9f115ef5f9760260e8b83839b3 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]; }