summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/wizard.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/wizard.php')
-rw-r--r--src/usr/local/www/wizard.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/wizard.php b/src/usr/local/www/wizard.php
index b3eb88a..28a9216 100644
--- a/src/usr/local/www/wizard.php
+++ b/src/usr/local/www/wizard.php
@@ -89,25 +89,25 @@ if ($_POST['xml']) {
if (empty($xml)) {
$xml = "not_defined";
- print_info_box(sprintf(gettext("ERROR: Could not open %s."), $xml));
+ print_info_box(sprintf(gettext("Could not open %s."), $xml), 'danger');
die;
} else {
$wizard_xml_prefix = "{$g['www_path']}/wizards";
$wizard_full_path = "{$wizard_xml_prefix}/{$xml}";
if (substr_compare(realpath($wizard_full_path), $wizard_xml_prefix, 0, strlen($wizard_xml_prefix))) {
- print_info_box(gettext("ERROR: Invalid path specified."));
+ print_info_box(gettext("Invalid path specified."), 'danger');
die;
}
if (file_exists($wizard_full_path)) {
$pkg = parse_xml_config_pkg($wizard_full_path, "pfsensewizard");
} else {
- print_info_box(sprintf(gettext("ERROR: Could not open %s."), $xml));
+ print_info_box(sprintf(gettext("Could not open %s."), $xml), 'danger');
die;
}
}
if (!is_array($pkg)) {
- print_info_box(sprintf(gettext("ERROR: Could not parse %s/wizards/%s file."), $g['www_path'], $xml));
+ print_info_box(sprintf(gettext("Could not parse %s/wizards/%s file."), $g['www_path'], $xml), 'danger');
die;
}
OpenPOWER on IntegriCloud