From: Michael M Slusarz Date: Fri, 14 Nov 2008 07:25:07 +0000 (-0700) Subject: Tweak the status parameters a bit. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9cc85915c91fee3067bf55ae79fcc0435bbe1e01;p=horde.git Tweak the status parameters a bit. --- 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) ); }