  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: category_tree.php 299 2005-11-30 20:51:03Z hpdl $ |
| |
| 3 | + | $Id: category_tree.php 345 2005-12-10 10:58:35Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
37 | 37 | | function osC_CategoryTree($load_from_database = true) { |
| |
38 | 38 | | global $osC_Database, $osC_Cache; |
| |
39 | 39 | | |
  |
40 | | - | if (SHOW_COUNTS == 'true') { |
| |
| 40 | + | if (SERVICES_CATEGORY_PATH_CALCULATE_PRODUCT_COUNT == '1') { |
|
41 | 41 | | $this->show_category_product_count = true; |
| |
42 | 42 | | } |
| |
43 | 43 | | |
| |
|
|
 |
… |
|
97 | 97 | | $this->cpath_array = array(); |
| |
98 | 98 | | $this->cpath_start_string = ''; |
| |
99 | 99 | | $this->cpath_end_string = ''; |
  |
100 | | - | $this->show_category_product_count = (SHOW_COUNTS == 'true') ? true : false; |
| |
| 100 | + | $this->show_category_product_count = (SERVICES_CATEGORY_PATH_CALCULATE_PRODUCT_COUNT == '1') ? true : false; |
  |
101 | 101 | | $this->category_product_count_start_string = ' ('; |
| |
102 | 102 | | $this->category_product_count_end_string = ')'; |
| |
103 | 103 | | } |