[-] BO : #PSCFV-2214 : Change the order of localizations packs
This commit is contained in:
@@ -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