summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg.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/pkg.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/pkg.php')
-rwxr-xr-xsrc/usr/local/www/pkg.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/pkg.php b/src/usr/local/www/pkg.php
index ac4f532..c468319 100755
--- a/src/usr/local/www/pkg.php
+++ b/src/usr/local/www/pkg.php
@@ -71,7 +71,7 @@ $xml = $_REQUEST['xml'];
if ($xml == "") {
include("head.inc");
- print_info_box(gettext("ERROR: No valid package defined."));
+ print_info_box(gettext("No valid package defined."), 'danger', false);
include("foot.inc");
exit;
} else {
@@ -79,14 +79,14 @@ if ($xml == "") {
$pkg_full_path = "{$pkg_xml_prefix}/{$xml}";
$pkg_realpath = realpath($pkg_full_path);
if (empty($pkg_realpath)) {
- $path_error = sprintf(gettext("ERROR: Package path %s not found."), htmlspecialchars($pkg_full_path));
+ $path_error = sprintf(gettext("Package path %s not found."), htmlspecialchars($pkg_full_path));
} else if (substr_compare($pkg_realpath, $pkg_xml_prefix, 0, strlen($pkg_xml_prefix))) {
- $path_error = sprintf(gettext("ERROR: Invalid path %s specified."), htmlspecialchars($pkg_full_path));
+ $path_error = sprintf(gettext("Invalid path %s specified."), htmlspecialchars($pkg_full_path));
}
if (!empty($path_error)) {
include("head.inc");
- print_info_box($path_error . "<br />" . gettext("Try reinstalling the package."));
+ print_info_box($path_error . "<br />" . gettext("Try reinstalling the package."), 'danger', false);
include("foot.inc");
die;
}
@@ -95,7 +95,7 @@ if ($xml == "") {
$pkg = parse_xml_config_pkg($pkg_full_path, "packagegui");
} else {
include("head.inc");
- print_info_box(sprintf(gettext("File not found %s"), htmlspecialchars($xml)));
+ print_info_box(sprintf(gettext("File not found %s."), htmlspecialchars($xml)), 'danger', false);
include("foot.inc");
exit;
}
OpenPOWER on IntegriCloud