@@ 55-64 (lines=10) @@ | ||
52 | } |
|
53 | } |
|
54 | ||
55 | for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) { |
|
56 | if (strpos($include_modules[$i]['class'], '\\') !== false) { |
|
57 | Registry::set('Payment_' . str_replace('\\', '_', $include_modules[$i]['class']), new $include_modules[$i]['file']); |
|
58 | } else { |
|
59 | $this->lang->loadDefinitions('modules/payment/' . pathinfo($include_modules[$i]['file'], PATHINFO_FILENAME)); |
|
60 | include('includes/modules/payment/' . $include_modules[$i]['file']); |
|
61 | ||
62 | $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; |
|
63 | } |
|
64 | } |
|
65 | ||
66 | // if there is only one payment method, select it as default because in |
|
67 | // checkout_confirmation.php the $_SESSION['payment'] variable is being assigned the |
@@ 75-84 (lines=10) @@ | ||
72 | } |
|
73 | } |
|
74 | ||
75 | for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) { |
|
76 | if (strpos($include_modules[$i]['class'], '\\') !== false) { |
|
77 | Registry::set('Shipping_' . str_replace('\\', '_', $include_modules[$i]['class']), new $include_modules[$i]['file']); |
|
78 | } else { |
|
79 | $this->lang->loadDefinitions('modules/shipping/' . pathinfo($include_modules[$i]['file'], PATHINFO_FILENAME)); |
|
80 | include('includes/modules/shipping/' . $include_modules[$i]['file']); |
|
81 | ||
82 | $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; |
|
83 | } |
|
84 | } |
|
85 | } |
|
86 | } |
|
87 |