Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

757
 
758
 
758
 
category_tree.php
_> 11 <?php
  22 /*
<> 3 -  $Id: category_tree.php 757 2006-08-23 12:22:54Z hpdl $
   3+  $Id: category_tree.php 758 2006-08-23 12:30:07Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
307307       unset($totals);
  308308     }
  309309 
<>  310+    function getNumberOfProducts($id) {
   311+      foreach ($this->data as $parent => $categories) {
   312+        foreach ($categories as $category_id => $info) {
   313+          if ($id == $category_id) {
   314+            return $info['count'];
   315+          }
   316+        }
   317+      }
   318+
   319+      return false;
   320+    }
   321+
<_ 310322     function setRootCategoryID($root_category_id) {
  311323       $this->root_category_id = $root_category_id;
  312324     }