Forums / General Questions / [BUG] admin/languages.php & DEFAULT_CURRENCY

[BUG] admin/languages.php & DEFAULT_CURRENCY

Locked
Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 May 2006, 02:02
#1
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Posts:
49
Plugin Contributions:
0

[BUG] admin/languages.php & DEFAULT_CURRENCY

I suspect the two occurences of "DEFAULT_CURRENCY" in "admin/languages.php" (lines 307 & 312) to be a mistake, isn't it?
        $lID = zen_db_prepare_input($_GET['lID']);
        $lng = $db->Execute("select languages_id
                             from " . TABLE_LANGUAGES . "
                             where code = '" . DEFAULT_CURRENCY . "'");

        if ($lng->fields['languages_id'] == $lID) {
          $db->Execute("update " . TABLE_CONFIGURATION . "
                        set configuration_value = ''
                        where configuration_key = 'DEFAULT_CURRENCY'");
        }


"DEFAULT_CURRENCY" should be replaced with "DEFAULT_LANGUAGE".
12 May 2006, 02:15
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: [BUG] admin/languages.php & DEFAULT_CURRENCY

No ... that setting is used for DEFAULT_CURRENCY which is the language code

It is correct ...
12 May 2006, 02:30
#3
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Posts:
49
Plugin Contributions:
0

Re: [BUG] admin/languages.php & DEFAULT_CURRENCY

I see. Sorry!
12 May 2006, 02:44
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: [BUG] admin/languages.php & DEFAULT_CURRENCY

Not a problem ... always better to ask about something that looks odd or out of sorts than to not ask and find out it really was ... a ... umm ... you know ... bug ... :eek: