Permalink
Browse files

error typo

  • Loading branch information...
1 parent 14f4d7c commit d64571edd8c844de214c9957d6df111266893d59 unknown committed Aug 14, 2011
Showing with 6 additions and 8 deletions.
  1. +6 −8 catalog/includes/modules/boxes/bm_currencies.php
@@ -31,19 +31,17 @@ function bm_currencies() {
}
function execute() {
- global $PHP_SELF, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate;
+ global $currencies, $request_type, $currency, $oscTemplate;
- if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
+ if (substr(basename($_SERVER['PHP_SELF']), 0, 8) != 'checkout') {
if (isset($currencies) && is_object($currencies) && (count($currencies->currencies) > 1)) {
- reset($currencies->currencies);
$currencies_array = array();
- while (list($key, $value) = each($currencies->currencies)) {
+ foreach($currencies->currencies as $key => $value) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
- reset($HTTP_GET_VARS);
- while (list($key, $value) = each($HTTP_GET_VARS)) {
+ foreach($_GET as $key => $value) {
if ( is_string($value) && ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
@@ -52,7 +50,7 @@ function execute() {
$data = '<div class="ui-widget infoBoxContainer">' .
' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_CURRENCIES_BOX_TITLE . '</div>' .
' <div class="ui-widget-content infoBoxContents">' .
- ' ' . tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get') .
+ ' ' . tep_draw_form('currencies', tep_href_link(basename($_SERVER['PHP_SELF']), '', $request_type, false), 'get') .
' ' . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id() . '</form>' .
' </div>' .
'</div>';
@@ -84,4 +82,4 @@ function keys() {
return array('MODULE_BOXES_CURRENCIES_STATUS', 'MODULE_BOXES_CURRENCIES_CONTENT_PLACEMENT', 'MODULE_BOXES_CURRENCIES_SORT_ORDER');
}
}
-?>
+?>

0 comments on commit d64571e

Please sign in to comment.