  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: order_total.php 273 2005-11-23 16:53:04Z hpdl $ |
| |
| 3 | + | $Id: order_total.php 377 2006-01-09 14:47:49Z 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_Language; |
| |
| 19 | + | |
|
18 | 20 | | if (defined('MODULE_ORDER_TOTAL_INSTALLED') && tep_not_null(MODULE_ORDER_TOTAL_INSTALLED)) { |
| |
19 | 21 | | $this->modules = explode(';', MODULE_ORDER_TOTAL_INSTALLED); |
| |
20 | 22 | | |
| |
21 | 23 | | reset($this->modules); |
| |
22 | 24 | | while (list(, $value) = each($this->modules)) { |
  |
23 | | - | include('includes/languages/' . $_SESSION['language'] . '/modules/order_total/' . $value); |
| |
| 25 | + | include('includes/languages/' . $osC_Language->getDirectory() . '/modules/order_total/' . $value); |
  |
24 | 26 | | include('includes/modules/order_total/' . $value); |
| |
25 | 27 | | |
| |
26 | 28 | | $class = substr($value, 0, strrpos($value, '.')); |