Added ability to detect HTTP_X_FORWARDED_PROTO in get_location(), thanks to Daniel...
[squirrelmail.git] / functions / options.php
index 7332303dc7c9f4e378da670ae20ab22167f027ac..424e4c870e6671f88a48cee5c825ebaa75023c42 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Functions needed to display the options pages.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -316,10 +316,9 @@ class SquirrelOption {
                 $result = $this->createWidget_FolderList();
                 break;
             default:
-//FIXME: can we throw an error here instead?  either way, we don't want HTML here!
-               $result = '<font color="' . $color[2] . '">'
-                       . sprintf(_("Option Type '%s' Not Found"), $this->type)
-                       . '</font>';
+                error_box ( 
+                    sprintf(_("Option Type '%s' Not Found"), $this->type)
+                    );
         }
 
         /* Add the "post script" for this option. */
@@ -626,4 +625,3 @@ function create_option_groups($optgrps, $optvals) {
     return ($result);
 }
 
-// vim: et ts=4