summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/wizard.php
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-13 20:07:44 -0600
committerStephen Beaver <sbeaver@netgate.com>2016-02-14 15:09:55 -0500
commit8545addef70e17eee3daf34867514b5ab9fcdb45 (patch)
tree446940b83d451b895b4402ff672f5060b9a53ed0 /src/usr/local/www/wizard.php
parentf7c5e29c689af539a41229bc49894ffd7b98e4ec (diff)
downloadpfsense-8545addef70e17eee3daf34867514b5ab9fcdb45.zip
pfsense-8545addef70e17eee3daf34867514b5ab9fcdb45.tar.gz
Review alert wording. End sentence with period, remove redundant 'Warning', 'Error', etc. prefixes, since alerts are now color coded. Remove <b> tags.
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