diff --git a/votestats.php b/votestats.php index d0a3779..adac0f9 100644 --- a/votestats.php +++ b/votestats.php @@ -7,8 +7,8 @@ * application environment */ include("path.php"); -include(BASE."include/"."incl.php"); -require(BASE."include/"."category.php"); +include(BASE."include/incl.php"); +require(BASE."include/category.php"); /* default to 25 apps, main categories */ $topNumber = 25; @@ -79,12 +79,12 @@ if($catId != 0) /*******************************************************************/ /* add options for all of the categories that we are recursed into */ echo "Section:"; -echo "'; if($catId == 0) - echo "'; else - echo "'; $indent = 1; @@ -101,19 +101,20 @@ foreach ($cat_array_reversed as $i => $value) echo str_repeat("-", $indent); echo stripslashes($cat_name_array_reversed[$i]); - + echo ""; $indent++; } /******************************************************************/ /* add to the list all of the sub sections of the current section */ $cat = new Category($catId); -$subs = $cat->getCategoryList(); +$subs = $cat->aSubcatsIds; if($subs) { - while(list($id, list($name, $desc)) = each($subs)) + while(list($i, $id) = each($subs)) { + $oSubcat = new Category($id); /* if this is the current category, select this option */ if($id == $catId) echo "