// Fixed module positions in tabs
This commit is contained in:
@@ -1534,7 +1534,6 @@ class AdminControllerCore extends Controller
|
|||||||
|
|
||||||
public function renderModulesList()
|
public function renderModulesList()
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->getModulesList($this->filter_modules_list))
|
if ($this->getModulesList($this->filter_modules_list))
|
||||||
{
|
{
|
||||||
$helper = new Helper();
|
$helper = new Helper();
|
||||||
@@ -2249,9 +2248,10 @@ class AdminControllerCore extends Controller
|
|||||||
if (in_array($module->name, $filter_modules_list) && $perm)
|
if (in_array($module->name, $filter_modules_list) && $perm)
|
||||||
{
|
{
|
||||||
$this->fillModuleData($module, 'select');
|
$this->fillModuleData($module, 'select');
|
||||||
$this->modules_list[] = $module;
|
$this->modules_list[array_search($module->name, $filter_modules_list)] = $module;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ksort($this->modules_list);
|
||||||
|
|
||||||
if (count($this->modules_list))
|
if (count($this->modules_list))
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -351,7 +351,6 @@ class HelperCore
|
|||||||
public function renderModulesList($modules_list)
|
public function renderModulesList($modules_list)
|
||||||
{
|
{
|
||||||
$this->tpl_vars = array('modules_list' => $modules_list);
|
$this->tpl_vars = array('modules_list' => $modules_list);
|
||||||
|
|
||||||
$tpl = $this->createTemplate('helpers/modules_list/list.tpl');
|
$tpl = $this->createTemplate('helpers/modules_list/list.tpl');
|
||||||
$tpl->assign($this->tpl_vars);
|
$tpl->assign($this->tpl_vars);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user