Skip to content

Commit cb5cfd7

Browse files
authored
Merge pull request #82 from Touxten/Touxten-patch-1
Fix the link since the page migration
2 parents 1d8e881 + 02aebee commit cb5cfd7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ps_mainmenu.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,8 +1116,7 @@ public function renderForm()
11161116
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
11171117
$helper->module = $this;
11181118
$helper->identifier = $this->identifier;
1119-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) .
1120-
'&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1119+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
11211120
$helper->token = Tools::getAdminTokenLite('AdminModules');
11221121
$helper->tpl_vars = [
11231122
'languages' => $this->context->controller->getLanguages(),
@@ -1200,8 +1199,7 @@ public function renderAddForm()
12001199
$helper->fields_value['updatelink'] = '';
12011200
}
12021201

1203-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) .
1204-
'&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1202+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
12051203
$helper->token = Tools::getAdminTokenLite('AdminModules');
12061204
$helper->languages = $this->context->controller->getLanguages();
12071205
$helper->default_form_language = (int) $this->context->language->id;
@@ -1432,7 +1430,7 @@ public function renderList()
14321430
$helper->module = $this;
14331431
$helper->title = $this->trans('Link list', [], 'Modules.Mainmenu.Admin');
14341432
$helper->token = Tools::getAdminTokenLite('AdminModules');
1435-
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
1433+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', true, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
14361434

14371435
return $helper->generateList($links, $fields_list);
14381436
}

0 commit comments

Comments
 (0)