From b7a55933fa2615be7664b73238f57e1d58c1c13a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 22 Dec 2005 05:47:05 +0000 Subject: [PATCH] r656: We don't want to use $message->error() because it will construct the header. Instead, use our own custom error panel --- help.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/help.php b/help.php index 6b1133d..82a6fdf 100644 --- a/help.php +++ b/help.php @@ -20,10 +20,13 @@ require_once('./global.php'); if (!$bugsys->in['topic'] OR !isset($bugsys->datastore['help'][ $bugsys->in['topic'] ])) { - $message->error($lang->getlex('error_invalid_id')); + $topic['title'] = $lang->string('Invalid'); + $topic['body'] = $lang->string('That help topic does not exist in the system.'); +} +else +{ + $topic = $bugsys->datastore['help'][ $bugsys->in['topic'] ]; } - -$topic = $bugsys->datastore['help'][ $bugsys->in['topic'] ]; eval('$template->flush("' . $template->fetch('help_window') . '");'); -- 2.43.5