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.

CommentFileSizeAuthor
#1 country.patch919 bytescatch

Comments

catch’s picture

Status: Active » Needs review
StatusFileSize
new919 bytes

Here's a patch for that change.

catch’s picture

Status: Needs review » Fixed

Committed this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.