diff options
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 9fa6e39..ecb1b1b 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -154,6 +154,7 @@ if ($_POST){ if ($config['widgets']) { + $widgetlist = array(); $widgetlist = $pconfig['sequence']; $colpos = array(); @@ -503,15 +504,15 @@ echo $jscriptstr; foreach($widgetlist as $widget) { if(!stristr($widget, "widget.php")) - continue; + continue; $periodpos = strpos($widget, "."); $widgetname = substr($widget, 0, $periodpos); if ($widgetname != ""){ - $nicename = $widgetname; - $nicename = str_replace("_", " ", $nicename); - - //make the title look nice - $nicename = ucwords($nicename); + $nicename = $widgetname; + $nicename = str_replace("_", " ", $nicename); + + //make the title look nice + $nicename = ucwords($nicename); } if ($config['widgets']){ |