diff options
author | Scott Dale <sdale@pfsense.org> | 2008-07-22 00:21:41 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2008-07-22 00:21:41 +0000 |
commit | c9cfb8076ecf914c42745bfa9627324085a427a2 (patch) | |
tree | c1cb715e4b31a17919c267f3f935687b9a7230d3 /usr/local | |
parent | 8b06c9ffcab19168c35a7bd55b2b7a2f74445788 (diff) | |
download | pfsense-c9cfb8076ecf914c42745bfa9627324085a427a2.zip pfsense-c9cfb8076ecf914c42745bfa9627324085a427a2.tar.gz |
one last change, forgot to restore widget counter
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index cb99be6..9fa6e39 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -175,6 +175,7 @@ if ($config['widgets']) } } $widgetlist = $savedwidgetfiles; + } else{ $widgetlist = $widgetfiles; @@ -491,8 +492,8 @@ echo $jscriptstr; <div id="niftyOutter"> <?php $totalwidgets = count($widgetfiles); - $halftotal = $totalwidgets / 2 - 1; - $widgetcounter = 1; + $halftotal = $totalwidgets / 2 - 2; + $widgetcounter = 0; $directory = "/usr/local/www/widgets/widgets/"; $printed = false; $firstprint = false; @@ -500,6 +501,7 @@ echo $jscriptstr; <div id="col1" style="float:left;width:49%;padding-bottom:40px"> <?php foreach($widgetlist as $widget) { + if(!stristr($widget, "widget.php")) continue; $periodpos = strpos($widget, "."); |