This hunk of code:
// If there is a langauge already in the session, look for it.
elseif (isset($_SESSION['country_code_language'])) {
$set = FALSE;
$language_short = (strlen($_SESSION['country_code_language']) > 2) ? substr($_SESSION['country_code_language'], 0, 2) : $_SESSION['country_code_language'];
// If it's global, return a two-digit language
if ($country == COUNTRY_CODE_GLOBAL && isset($country_languages[$language_short])) {
$_SESSION['country_code_language'] = $language_short;
$set = TRUE;
}
Looks like it should probably be if ($language_short == COUNTRY_CODE_GLOBAL) but posting an issue before I commit anything.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | country.patch | 919 bytes | catch |
Comments
Comment #1
catchHere's a patch for that change.
Comment #2
catchCommitted this.