  |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2006 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) |
| |
|
|
 |
… |
|
17 | 17 | | |
| |
18 | 18 | | /* Class constructor */ |
| |
19 | 19 | | |
  |
20 | | - | function osC_RecentlyVisited() { |
| |
| 20 | + | function __construct() { |
|
21 | 21 | | if (isset($_SESSION['osC_RecentlyVisited_data']) === false) { |
| |
22 | 22 | | $_SESSION['osC_RecentlyVisited_data'] = array(); |
| |
23 | 23 | | } |
| |
|
|
 |
… |
|
30 | 30 | | |
| |
31 | 31 | | if (SERVICE_RECENTLY_VISITED_SHOW_PRODUCTS == '1') { |
| |
32 | 32 | | if (isset($osC_Product) && is_a($osC_Product, 'osC_Product')) { |
  |
33 | | - | $this->setProduct($osC_Product->getID()); |
| |
| 33 | + | $this->setProduct($osC_Product->getMasterID()); |
  |
34 | 34 | | } |
| |
35 | 35 | | } |
| |
36 | 36 | | |