  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
| |
3 | 3 | | $Id: $ |
  |
| 4 | + | |
|
4 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
5 | 6 | | http://www.oscommerce.com |
| |
6 | 7 | | |
  |
7 | | - | Copyright (c) 2005 osCommerce |
| |
| 8 | + | Copyright (c) 2006 osCommerce |
|
8 | 9 | | |
| |
9 | 10 | | Released under the GNU General Public License |
| |
10 | 11 | | */ |
| |
|
|
 |
… |
|
116 | 117 | | } |
| |
117 | 118 | | |
| |
118 | 119 | | function hasProducts() { |
  |
119 | | - | if (isset($this->visits['products']) && (empty($this->visits['products']) === false)) { |
| |
120 | | - | return true; |
| |
121 | | - | } |
| |
122 | | - | |
| |
123 | | - | return false; |
| |
| 120 | + | return ( (SERVICE_RECENTLY_VISITED_SHOW_PRODUCTS == '1') && isset($this->visits['products']) && !empty($this->visits['products']) ); |
|
124 | 121 | | } |
| |
125 | 122 | | |
| |
126 | 123 | | function getProducts() { |
| |
|
|
 |
… |
|
154 | 151 | | } |
| |
155 | 152 | | |
| |
156 | 153 | | function hasCategories() { |
  |
157 | | - | if (isset($this->visits['categories']) && (empty($this->visits['categories']) === false)) { |
| |
158 | | - | return true; |
| |
159 | | - | } |
| |
160 | | - | |
| |
161 | | - | return false; |
| |
| 154 | + | return ( (SERVICE_RECENTLY_VISITED_SHOW_CATEGORIES == '1') && isset($this->visits['categories']) && !empty($this->visits['categories']) ); |
|
162 | 155 | | } |
| |
163 | 156 | | |
| |
164 | 157 | | function getCategories() { |
| |
|
|
 |
… |
|
194 | 187 | | } |
| |
195 | 188 | | |
| |
196 | 189 | | function hasSearches() { |
  |
197 | | - | if (isset($this->visits['searches']) && (empty($this->visits['searches']) === false)) { |
| |
198 | | - | return true; |
| |
199 | | - | } |
| |
200 | | - | |
| |
201 | | - | return false; |
| |
| 190 | + | return ( (SERVICE_RECENTLY_VISITED_SHOW_SEARCHES == '1') && isset($this->visits['searches']) && !empty($this->visits['searches']) ); |
  |
202 | 191 | | } |
| |
203 | 192 | | |
| |
204 | 193 | | function getSearches() { |