From 9cc85915c91fee3067bf55ae79fcc0435bbe1e01 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 14 Nov 2008 00:25:07 -0700 Subject: [PATCH] Tweak the status parameters a bit. --- framework/Mime/lib/Horde/Mime/Viewer/Driver.php | 3 ++- framework/Mime/lib/Horde/Mime/Viewer/html.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Driver.php b/framework/Mime/lib/Horde/Mime/Viewer/Driver.php index 4cbd4f596..b52adcc32 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/Driver.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/Driver.php @@ -109,9 +109,10 @@ class Horde_Mime_Viewer_Driver * 'data' - (string) The rendered data. * 'status' - (array) An array of status information to be displayed to * the user. Consists of arrays with the following keys: + * 'class' - (string) The class to use for display. + * 'id' - (string) The DOM ID to use for the status item. * 'img' - (string) An image to display. * 'text' - (array) The text to display. - * 'type' - (string) Either 'info' or 'warning'. * 'type' - (string) The MIME type of the rendered data. * */ diff --git a/framework/Mime/lib/Horde/Mime/Viewer/html.php b/framework/Mime/lib/Horde/Mime/Viewer/html.php index ea7a246ba..cec01513c 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/html.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/html.php @@ -166,8 +166,8 @@ class Horde_Mime_Viewer_html extends Horde_Mime_Viewer_Driver } $status[] = array( - 'text' => array($phish_warning), - 'type' => 'warning' + 'class' => 'mimestatuswarning', + 'text' => array($phish_warning) ); } -- 2.11.0