  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: category_tree.php 1498 2007-03-29 14:04:50Z hpdl $ |
| |
| 3 | + | $Id: category_tree.php 1860 2009-03-06 23:25:01Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2004 osCommerce |
| |
| 8 | + | Copyright (c) 2007 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | This program is free software; you can redistribute it and/or modify |
| |
11 | 11 | | it under the terms of the GNU General Public License v2 (1991) |
| |
|
|
 |
… |
|
36 | 36 | | $category_product_count_start_string = ' (', |
| |
37 | 37 | | $category_product_count_end_string = ')'; |
| |
38 | 38 | | |
  |
39 | | - | function osC_CategoryTree($load_from_database = true) { |
| |
| 39 | + | function __construct($load_from_database = true) { |
|
40 | 40 | | global $osC_Database, $osC_Cache, $osC_Language; |
| |
41 | 41 | | |
| |
42 | 42 | | if (SERVICES_CATEGORY_PATH_CALCULATE_PRODUCT_COUNT == '1') { |
| |
|
|
 |
… |
|
65 | 65 | | $this->calculateCategoryProductCount(); |
| |
66 | 66 | | } |
| |
67 | 67 | | |
  |
68 | | - | $osC_Cache->writeBuffer($this->data); |
| |
| 68 | + | $osC_Cache->write($this->data); |
  |
69 | 69 | | } |
| |
70 | 70 | | } |
| |
71 | 71 | | } |