[-] BO : AdminModule now sort modules by alphabetical order
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11825 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
ec55488fae
commit
99295113e2
2 files changed
+10
-1
No files matched your search
@@ -1050,6 +1050,15 @@ abstract class ModuleCore
|
|||||||
|
|
||||||
//echo round($current_memory / 1024 / 1024, 2).'Mo<br />';
|
//echo round($current_memory / 1024 / 1024, 2).'Mo<br />';
|
||||||
|
|
||||||
|
// @TODO review
|
||||||
|
function sortModules($a, $b)
|
||||||
|
{
|
||||||
|
if ($a->displayName == $b->displayName)
|
||||||
|
return 0;
|
||||||
|
return ($a->displayName < $b->displayName) ? -1 : 1;
|
||||||
|
}
|
||||||
|
usort($moduleList, "sortModules");
|
||||||
|
|
||||||
if ($errors)
|
if ($errors)
|
||||||
{
|
{
|
||||||
echo '<div class="alert error"><h3>'.Tools::displayError('The following module(s) couldn\'t be loaded').':</h3><ol>';
|
echo '<div class="alert error"><h3>'.Tools::displayError('The following module(s) couldn\'t be loaded').':</h3><ol>';
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
|
|
||||||
$this->initContent();
|
$this->initContent();
|
||||||
$this->context->smarty->display('modules/list.tpl');
|
$this->context->smarty->display('modules/list.tpl');
|
||||||
die('OK');
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajaxProcessSetFilter()
|
public function ajaxProcessSetFilter()
|
||||||
|
|||||||
Reference in new issue
Block a user