From d866cc445c686fdc36a914daa3a506624fb4415d Mon Sep 17 00:00:00 2001 From: k-paulius Date: Sun, 14 Feb 2016 00:31:46 -0600 Subject: Remove "headline" from the breadcrumb. It serves no real purpose, since the action that is being performed is already shown in the panel title + no other page shows action in the breadcrumb. --- src/usr/local/www/pkg_mgr_install.php | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php index e9c33e0..05d940b 100644 --- a/src/usr/local/www/pkg_mgr_install.php +++ b/src/usr/local/www/pkg_mgr_install.php @@ -212,8 +212,6 @@ function waitfor_string_in_file($filename, $string, $timeout) { return(false); } -$headline = "
"; - if ($_POST) { if (empty($_POST['id']) && $_POST['mode'] != 'reinstallall') { header("Location: pkg_mgr_installed.php"); @@ -229,25 +227,6 @@ if ($_POST) { header("Location: pkg_mgr_installed.php"); return; } - - switch ($_GET['mode']) { - case 'reinstallall': - $headline = gettext("Reinstall all Packages"); - break; - case 'reinstallpkg': - if ($_GET['from'] && $_GET['to']) { - $headline = gettext("Upgrade Package"); - } else { - $headline = gettext("Reinstall Package"); - } - break; - case 'delete': - $headline = gettext("Remove Package"); - break; - default: - $headline = gettext("Install Package"); - break; - } } if ($_GET && $_GET['id'] == "firmware") { @@ -262,7 +241,7 @@ if ($firmwareupdate || ($_POST['id'] == "firmware")) { $tab_array[] = array(gettext("System Update"), true, ""); $tab_array[] = array(gettext("Update Settings"), false, "system_update_settings.php"); } else { - $pgtitle = array(gettext("System"), gettext("Package Manager"), $headline); + $pgtitle = array(gettext("System"), gettext("Package Manager"), gettext("Package Installer")); $tab_array[] = array(gettext("Available Packages"), false, "pkg_mgr.php"); $tab_array[] = array(gettext("Installed Packages"), false, "pkg_mgr_installed.php"); $tab_array[] = array(gettext("Package Installer"), true, ""); @@ -277,7 +256,6 @@ if ($input_errors) { ?>
- ", ";", "&", "'", '"', '.', '/'), "", htmlspecialchars_decode($_GET['id'], ENT_QUOTES | ENT_HTML401)); -- cgit v1.1