  |
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) |
| |
|
|
 |
… |
|
22 | 22 | | |
| |
23 | 23 | | /* Class constructor */ |
| |
24 | 24 | | |
  |
25 | | - | function osC_Products($id = null) { |
| |
| 25 | + | function __construct($id = null) { |
|
26 | 26 | | if (is_numeric($id)) { |
| |
27 | 27 | | $this->_category = $id; |
| |
28 | 28 | | } |
| |
|
|
 |
… |
|
57 | 57 | | function setSortBy($field, $direction = '+') { |
| |
58 | 58 | | switch ($field) { |
| |
59 | 59 | | case 'model': |
  |
60 | | - | $this->_sort_by = 'pd.products_model'; |
| |
| 60 | + | $this->_sort_by = 'p.products_model'; |
  |
61 | 61 | | break; |
| |
62 | 62 | | case 'manufacturer': |
| |
63 | 63 | | $this->_sort_by = 'm.manufacturers_name'; |