[-] BO : #PSCFV-2214 : Change the order of localizations packs
This commit is contained in:
1 parent
f3913e4def
commit
c19b032b4c
1 file changed
+7
@@ -173,6 +173,11 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
parent::postProcess();
|
||||
}
|
||||
|
||||
public function sortLocalizationsPack($a, $b)
|
||||
{
|
||||
return $a['name'] > $b['name'];
|
||||
}
|
||||
|
||||
public function renderForm()
|
||||
{
|
||||
$localizations_pack = false;
|
||||
@@ -198,6 +203,8 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
if (!$localizations_pack)
|
||||
return $this->displayWarning($this->l('Cannot connect to prestashop.com'));
|
||||
|
||||
usort($localizations_pack, array($this, 'sortLocalizationsPack'));
|
||||
|
||||
$selection_import = array(
|
||||
array(
|
||||
'id' => 'states',
|
||||
|
||||
Reference in new issue
Block a user