summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-20 10:53:33 +0545
committerStephen Beaver <sbeaver@netgate.com>2015-11-20 07:53:35 -0500
commit75ae3d1cd62d76629d02b07c73f1892e91ba95de (patch)
tree14293bfa6da48e8dc79b4a64b351feb9e7ed0924 /src/usr/local/www/index.php
parent31fd8dff90793fc70cab9f1ae41f831bc3eb67d3 (diff)
downloadpfsense-75ae3d1cd62d76629d02b07c73f1892e91ba95de.zip
pfsense-75ae3d1cd62d76629d02b07c73f1892e91ba95de.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.
Diffstat (limited to 'src/usr/local/www/index.php')
-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