Quellcode durchsuchen

error out on nonexistant option type.

Thijs Kinkhorst vor 18 Jahren
Ursprung
Commit
b406007eb5
1 geänderte Dateien mit 3 neuen und 5 gelöschten Zeilen
  1. 3 5
      functions/options.php

+ 3 - 5
functions/options.php

@@ -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