summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-20 10:53:33 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-20 10:53:33 +0545
commit29134e27b03d40d1aab487a45175cc898a50ef66 (patch)
tree155964dd07babcc2a24ad11e4838a48b3aec6086
parent08551b56ccd901a38ac6958321725ca26efcaff7 (diff)
downloadpfsense-29134e27b03d40d1aab487a45175cc898a50ef66.zip
pfsense-29134e27b03d40d1aab487a45175cc898a50ef66.tar.gz
Fix widgetname variables
These were wrong. But actually I don't think any widgets use this mechanism of $config['widgets']['mywidget-config'] - they seem to do their own thing making names for the keys they use in $config['widgets'] to store their settings. So I didn't find anything actually broken because of this.
-rw-r--r--src/usr/local/www/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index dcd11d2..455ee47 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -138,7 +138,7 @@ if ($_POST && $_POST['sequence']) {
foreach ($widgets as $widgetname => $widgetconfig) {
if ($_POST[$widgetname . '-config']) {
- $config['widgets'][$widgetname . '-config'] = $_POST[$name . '-config'];
+ $config['widgets'][$widgetname . '-config'] = $_POST[$widgetname . '-config'];
}
}
@@ -254,8 +254,8 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") {
##find custom configurations of a particular widget and load its info to $pconfig
foreach ($widgets as $widgetname => $widgetconfig) {
- if ($config['widgets'][$name . '-config']) {
- $pconfig[$name . '-config'] = $config['widgets'][$name . '-config'];
+ if ($config['widgets'][$widgetname . '-config']) {
+ $pconfig[$widgetname . '-config'] = $config['widgets'][$widgetname . '-config'];
}
}
}
OpenPOWER on IntegriCloud