// Add list of most used countries in top of countries list in installer #PSTEST-729

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13228 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-10 14:47:23 +00:00
parent 874f8f23a0
commit ab913b28e5
2 changed files with 31 additions and 2 deletions
@@ -262,6 +262,35 @@ class InstallControllerHttpConfigure extends InstallControllerHttp
sort($list_activities);
$this->list_activities = $list_activities;
// Countries list
$this->list_countries = array();
$countries = $this->language->getCountries();
$top_countries = array(
'fr',
'es',
'us',
'gb',
'it',
'de',
'nl',
'pl',
'id',
'be',
'br',
'se',
'ca',
'ru',
'cn',
);
foreach ($top_countries as $iso)
$this->list_countries[$iso] = $countries[$iso];
$this->list_countries[0] = '-----------------';
foreach ($countries as $iso => $lang)
$this->list_countries[$iso] = $lang;
// Install type
$this->install_type = ($this->session->install_type) ? $this->session->install_type : 'full';