  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: shipping.php 368 2005-12-22 16:27:23Z hpdl $ |
| |
| 3 | + | $Id: shipping.php 383 2006-01-09 16:35:46Z 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 shipping($module = '') { |
  |
| 18 | + | global $osC_Language; |
| |
| 19 | + | |
|
18 | 20 | | if (defined('MODULE_SHIPPING_INSTALLED') && tep_not_null(MODULE_SHIPPING_INSTALLED)) { |
| |
19 | 21 | | $this->modules = explode(';', MODULE_SHIPPING_INSTALLED); |
| |
20 | 22 | | |
| |
|
|
 |
… |
|
31 | 33 | | } |
| |
32 | 34 | | |
| |
33 | 35 | | for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) { |
  |
34 | | - | include('includes/languages/' . $_SESSION['language'] . '/modules/shipping/' . $include_modules[$i]['file']); |
| |
| 36 | + | include('includes/languages/' . $osC_Language->getDirectory() . '/modules/shipping/' . $include_modules[$i]['file']); |
  |
35 | 37 | | include('includes/modules/shipping/' . $include_modules[$i]['file']); |
| |
36 | 38 | | |
| |
37 | 39 | | $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; |