X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fhelp.php;h=2c0798c7d9cd671e8d5912ef17698e5b1b5adc42;hb=7571d218b25f4c8a701ed63a5c070e3f2a72f67b;hp=f9d07b51aa3c28bd06a0197eccc18c5ebc200461;hpb=386c7b5475f02b7d08f19521dabe7c2ac9216355;p=squirrelmail.git
diff --git a/src/help.php b/src/help.php
index f9d07b51..2c0798c7 100644
--- a/src/help.php
+++ b/src/help.php
@@ -111,11 +111,14 @@ if (!isset($squirrelmail_language)) {
if (file_exists("../help/$squirrelmail_language")) {
$user_language = $squirrelmail_language;
} else if (file_exists('../help/en_US')) {
- error_box(_("Help is not available in the selected language. It will be displayed in English instead."), $color);
+ error_box(_("Help is not available in the selected language. It will be displayed in English instead."));
echo '
';
$user_language = 'en_US';
} else {
- error_box( _("Help is not available. Please contact your system administrator for assistance."), $color );
+ error_box( _("Help is not available. Please contact your system administrator for assistance."));
+ echo '';
+ // Display footer (closes HTML tags) and stop script execution.
+ $oTemplate->display('footer.tpl');
exit;
}
@@ -174,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 '