Skip to content

Commit fde0acc

Browse files
authored
Update ConfigurationForm.php
1 parent 768da35 commit fde0acc

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

classes/Form/ConfigurationForm.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,30 @@ public function generate()
5252
$helper->module = $this->module;
5353
$helper->name_controller = $this->module->name;
5454
$helper->token = Tools::getAdminTokenLite('AdminModules');
55-
$helper->currentIndex = Context::getContext()->link->getAdminLink('AdminModules', true) . '&configure=' . $this->module->name . '&tab_module=' . $this->module->tab . '&module_name=' . $this->module->name;
55+
$helper->currentIndex = Context::getContext()->link->getAdminLink('AdminModules', true, [], [
56+
'configure' => $this->module->name,
57+
'tab_module' => $this->module->tab,
58+
'module_name' => $this->module->name,
59+
]);
5660

5761
// Language
5862
$helper->default_form_language = $default_lang;
5963
$helper->allow_employee_form_lang = $default_lang;
6064

6165
// Title and toolbar
6266
$helper->title = $this->module->displayName;
63-
$helper->show_toolbar = true; // false -> remove toolbar
64-
$helper->toolbar_scroll = true; // yes - > Toolbar is always visible on the top of the screen.
67+
$helper->show_toolbar = true; // false -> remove toolbar
68+
$helper->toolbar_scroll = true; // yes - > Toolbar is always visible on the top of the screen.
6569
$helper->submit_action = 'submit' . $this->module->name;
6670
$helper->toolbar_btn = [
6771
'save' => [
6872
'desc' => $this->module->getTranslator()->trans('Save', [], 'Modules.Googleanalytics.Admin'),
69-
'href' => Context::getContext()->link->getAdminLink('AdminModules', true) . '&configure=' . $this->module->name . '&tab_module=' . $this->module->tab . '&module_name=' . $this->module->name . '&save=' . $this->module->name,
73+
'href' => Context::getContext()->link->getAdminLink('AdminModules', true, [], [
74+
'configure' => $this->module->name,
75+
'tab_module' => $this->module->tab,
76+
'module_name' => $this->module->name,
77+
'save' => $this->module->name,
78+
]),
7079
],
7180
'back' => [
7281
'href' => Context::getContext()->link->getAdminLink('AdminModules', true),

0 commit comments

Comments
 (0)