summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-07 22:14:22 +0545
committerGitHub <noreply@github.com>2017-02-07 22:14:22 +0545
commit682008ff758b942d85ed007b485e0b2fa8e3a11c (patch)
tree624e2dbf4ef2010997abb9c9d968e35226b5966d /src/usr/local/www/pkg_mgr_install.php
parent2c06742d784cb7ec85151327fd753536d98fbcc1 (diff)
downloadpfsense-682008ff758b942d85ed007b485e0b2fa8e3a11c.zip
pfsense-682008ff758b942d85ed007b485e0b2fa8e3a11c.tar.gz
pkg_mgr_install remove embedded HTML from result strings
Diffstat (limited to 'src/usr/local/www/pkg_mgr_install.php')
-rw-r--r--src/usr/local/www/pkg_mgr_install.php20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php
index 5d1f10f..d573277 100644
--- a/src/usr/local/www/pkg_mgr_install.php
+++ b/src/usr/local/www/pkg_mgr_install.php
@@ -375,6 +375,8 @@ if ($_POST) {
}
}
+$pkgname_bold = '<b>' . $pkgname . '</b>';
+
if ($firmwareupdate) {
$panel_heading_txt = gettext("Updating System");
$pkg_success_txt = gettext('System update successfully completed.');
@@ -382,9 +384,9 @@ if ($firmwareupdate) {
$pkg_wait_txt = gettext('Please wait while the system update completes.');
} else if ($pkgmode == 'delete') {
$panel_heading_txt = gettext("Package Removal");
- $pkg_success_txt = sprintf(gettext('<b>%1$s</b> removal successfully completed.'), $pkgname);
- $pkg_fail_txt = sprintf(gettext('<b>%1$s</b> removal failed!'), $pkgname);
- $pkg_wait_txt = sprintf(gettext('Please wait while the removal of <b>%1$s</b> completes.'), $pkgname);
+ $pkg_success_txt = sprintf(gettext('%1$s removal successfully completed.'), $pkgname_bold);
+ $pkg_fail_txt = sprintf(gettext('%1$s removal failed!'), $pkgname_bold);
+ $pkg_wait_txt = sprintf(gettext('Please wait while the removal of %1$s completes.'), $pkgname_bold);
} else if ($pkgmode == 'reinstallall') {
$panel_heading_txt = gettext("Packages Reinstallation");
$pkg_success_txt = gettext('All packages reinstallation successfully completed.');
@@ -392,14 +394,14 @@ if ($firmwareupdate) {
$pkg_wait_txt = gettext('Please wait while the reinstallation of all packages completes.');
} else if ($pkgmode == 'reinstallpkg') {
$panel_heading_txt = gettext("Package Reinstallation");
- $pkg_success_txt = sprintf(gettext('<b>%1$s</b> reinstallation successfully completed.'), $pkgname);
- $pkg_fail_txt = sprintf(gettext('<b>%1$s</b> reinstallation failed!'), $pkgname);
- $pkg_wait_txt = sprintf(gettext('Please wait while the reinstallation of <b>%1$s</b> completes.'), $pkgname);
+ $pkg_success_txt = sprintf(gettext('%1$s reinstallation successfully completed.'), $pkgname_bold);
+ $pkg_fail_txt = sprintf(gettext('%1$s reinstallation failed!'), $pkgname_bold);
+ $pkg_wait_txt = sprintf(gettext('Please wait while the reinstallation of %1$s completes.'), $pkgname_bold);
} else {
$panel_heading_txt = gettext("Package Installation");
- $pkg_success_txt = sprintf(gettext('<b>%1$s</b> installation successfully completed.'), $pkgname);
- $pkg_fail_txt = sprintf(gettext('<b>%1$s</b> installation failed!'), $pkgname);
- $pkg_wait_txt = sprintf(gettext('Please wait while the installation of <b>%1$s</b> completes.'), $pkgname);
+ $pkg_success_txt = sprintf(gettext('%1$s installation successfully completed.'), $pkgname_bold);
+ $pkg_fail_txt = sprintf(gettext('%1$s installation failed!'), $pkgname_bold);
+ $pkg_wait_txt = sprintf(gettext('Please wait while the installation of %1$s completes.'), $pkgname_bold);
}
if ($confirmed):
OpenPOWER on IntegriCloud