Tweak the status parameters a bit.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 14 Nov 2008 07:25:07 +0000 (00:25 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 14 Nov 2008 07:25:07 +0000 (00:25 -0700)
framework/Mime/lib/Horde/Mime/Viewer/Driver.php
framework/Mime/lib/Horde/Mime/Viewer/html.php

index 4cbd4f5..b52adcc 100644 (file)
@@ -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.
      * </pre>
      */
index ea7a246..cec0151 100644 (file)
@@ -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)
             );
         }