From b94559164dce8594904b9d801e5280020426dea2 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 16 Jun 2015 22:51:53 +0545 Subject: [PATCH] Say what is happening when reinstalling package GUI XML At the confirmation dialog after pressing the "Reinstall XML" button, the text does not distinguish between having pressed "Reinstall the whole package" and "Reinstall the GUI/XML". It would be nice if the text of this confirmation allowed the user to be confident about which button they had just pushed, before confirming the action. Note: This stuff has no gettext() wrappers - but that can be fixed later, not get mixed up in this. --- usr/local/www/pkg_mgr_install.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 8a57555b15..4cbbc9bf9a 100644 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -115,12 +115,14 @@ if ((empty($_GET['mode']) && $_GET['id']) || (!empty($_GET['mode']) && (!empty($ } else if ($_GET['mode'] == 'reinstallall') { $pkgmode = 'reinstallall'; } + $pkg_gui_xml_text = ""; switch ($pkgmode) { case 'reinstallall': $pkgname = 'All packages'; $pkgtxt = 'reinstalled'; break; case 'reinstallxml': + $pkg_gui_xml_text = " GUI XML components"; case 'reinstallpkg': $pkgtxt = 'reinstalled'; break; @@ -136,7 +138,7 @@ if ((empty($_GET['mode']) && $_GET['id']) || (!empty($_GET['mode']) && (!empty($ -
Package: will be .
+
Package: will be .
Please confirm the action.