Browse Source

HTML fix.

Fredrik Jervfors 19 năm trước cách đây
mục cha
commit
923d8a9c63
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      src/help.php

+ 5 - 3
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 '</td></tr></table>';
+    // 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 '<li><a href="../src/help.php?chapter=' . $toc[$i][0]. '">' .
             $toc[$i][1] . '</a>' . 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 "<b>$chapter.$section - $help_info[0]</b>" .
-                html_tag( 'ul', $help_info[1] );
+                $help_info[1];
             $n = $help_info[3];
         }