  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: order_total.php 151 2005-08-02 14:33:25Z mattice $ |
| |
| 3 | + | $Id: order_total.php 368 2005-12-22 16:27:23Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
15 | 15 | | |
| |
16 | 16 | | // class constructor |
| |
17 | 17 | | function order_total() { |
  |
18 | | - | global $osC_Session; |
| |
19 | | - | |
|
20 | 18 | | if (defined('MODULE_ORDER_TOTAL_INSTALLED') && tep_not_null(MODULE_ORDER_TOTAL_INSTALLED)) { |
| |
21 | 19 | | $this->modules = explode(';', MODULE_ORDER_TOTAL_INSTALLED); |
| |
22 | 20 | | |
| |
23 | 21 | | reset($this->modules); |
| |
24 | 22 | | while (list(, $value) = each($this->modules)) { |
  |
25 | | - | include(DIR_WS_LANGUAGES . $osC_Session->value('language') . '/modules/order_total/' . $value); |
| |
26 | | - | include(DIR_WS_MODULES . 'order_total/' . $value); |
| |
| 23 | + | include('includes/languages/' . $_SESSION['language'] . '/modules/order_total/' . $value); |
| |
| 24 | + | include('includes/modules/order_total/' . $value); |
  |
27 | 25 | | |
| |
28 | 26 | | $class = substr($value, 0, strrpos($value, '.')); |
| |
29 | 27 | | $GLOBALS[$class] = new $class; |