summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-06-08 18:50:12 -0400
committerRenato Botelho <renato@netgate.com>2016-06-08 18:50:12 -0400
commitc87deb1ab570ef0488e01a0ea29b01146c0d7758 (patch)
tree731e0e60836aa8b1c9c13b71e74abfdc42f75df1 /src/usr/local/www/pkg_mgr.php
parent1a6fc86d35b7d9d43d79a0125980ac83f6232fa0 (diff)
downloadpfsense-c87deb1ab570ef0488e01a0ea29b01146c0d7758.zip
pfsense-c87deb1ab570ef0488e01a0ea29b01146c0d7758.tar.gz
Rework pkg_mgr_install.php:
- Stop using id parameter for additional packages, keep using it only for firmware upgrades - Created to control variables $completed and $confirmed to check all the stages and make it easy to understand what is happening - Stop using $pkgid and use $pkgname instead - Set $pkgname early and validate the port name - Use $firmwareupdate everywhere to check if it's a firmware upgrade - Add hidden input called confirmed to control when user has confirmed installation / upgrade / removal - Add specific messages for reinstall all - Remove an extra form submit and just changes progress bar and informative panel when json process finished successfully
Diffstat (limited to 'src/usr/local/www/pkg_mgr.php')
-rw-r--r--src/usr/local/www/pkg_mgr.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php
index 7ce9821..6eb6bc8 100644
--- a/src/usr/local/www/pkg_mgr.php
+++ b/src/usr/local/www/pkg_mgr.php
@@ -144,7 +144,7 @@ function get_pkg_table() {
$pkgtbl .= '</td>' . "\n";
$pkgtbl .= '<td>' . "\n";
- $pkgtbl .= '<a title="' . gettext("Click to install") . '" href="pkg_mgr_install.php?id=' . $index['name'] . '" class="btn btn-success btn-sm"><i class="fa fa-plus icon-embed-btn"></i>Install</a>' . "\n";
+ $pkgtbl .= '<a title="' . gettext("Click to install") . '" href="pkg_mgr_install.php?pkg=' . $index['name'] . '" class="btn btn-success btn-sm"><i class="fa fa-plus icon-embed-btn"></i>Install</a>' . "\n";
if (!$g['disablepackageinfo'] && $index['pkginfolink'] && $index['pkginfolink'] != $index['www']) {
$pkgtbl .= '<a target="_blank" title="' . gettext("View more information") . '" href="' . htmlspecialchars($index['pkginfolink']) . '" class="btn btn-default btn-sm">info</a>' . "\n";
OpenPOWER on IntegriCloud