Skip to content

Commit

Permalink
// Fix ISO detection on installer
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelMalie committed Jun 7, 2012
1 parent c70a501 commit 29c8210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-dev/controllers/http/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ public function display()
$this->list_countries[] = array('iso' => $iso, 'name' => $lang);

// Try to detect default country
if (!$this->session->shop_country)
if (1||!$this->session->shop_country)
{
$detect_language = $this->language->detectLanguage();
if (isset($detect_language['primarytag']))
{
$this->session->shop_country = (isset($detect_language['subtag'])) ? $detect_language['subtag'] : $detect_language['primarytag'];
$this->session->shop_country = strtolower(isset($detect_language['subtag']) ? $detect_language['subtag'] : $detect_language['primarytag']);
$this->session->shop_timezone = $this->getTimezoneByIso($this->session->shop_country);
}
}
Expand Down

0 comments on commit 29c8210

Please sign in to comment.