summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/index.php6
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, ".");
OpenPOWER on IntegriCloud