Skip to content

Commit 0e76725

Browse files
authored
Update ps_emailsubscription.php
1 parent 11aff27 commit 0e76725

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ps_emailsubscription.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function getContent()
239239
$c->update();
240240
}
241241

242-
Tools::redirectAdmin($this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&conf=4&token=' . Tools::getAdminTokenLite('AdminModules'));
242+
Tools::redirectAdmin($this->context->link->getAdminLink('AdminModules', true, [], ['configure' => $this->name, 'conf' => 4]));
243243
} elseif (Tools::isSubmit('submitExport') && $action = Tools::getValue('action')) {
244244
$this->export_csv();
245245
} elseif (Tools::isSubmit('searchEmail')) {
@@ -312,7 +312,7 @@ public function renderList()
312312
$helper_list->simple_header = false;
313313
$helper_list->identifier = 'id';
314314
$helper_list->table = 'merged';
315-
$helper_list->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name;
315+
$helper_list->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name]);
316316
$helper_list->token = Tools::getAdminTokenLite('AdminModules');
317317
$helper_list->actions = ['viewCustomer'];
318318

@@ -1109,7 +1109,7 @@ public function renderForm()
11091109
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
11101110
$helper->identifier = $this->identifier;
11111111
$helper->submit_action = 'submitUpdate';
1112-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1112+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
11131113
$helper->token = Tools::getAdminTokenLite('AdminModules');
11141114
$helper->tpl_vars = [
11151115
'fields_value' => $this->getConfigFieldsValues(),
@@ -1210,7 +1210,7 @@ public function renderExportForm()
12101210
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
12111211
$helper->identifier = $this->identifier;
12121212
$helper->submit_action = 'btnSubmit';
1213-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1213+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
12141214
$helper->token = Tools::getAdminTokenLite('AdminModules');
12151215
$helper->tpl_vars = [
12161216
'fields_value' => $this->getConfigFieldsValues(),
@@ -1249,7 +1249,7 @@ public function renderSearchForm()
12491249
$helper->table = $this->table;
12501250
$helper->identifier = $this->identifier;
12511251
$helper->submit_action = 'searchEmail';
1252-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1252+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
12531253
$helper->token = Tools::getAdminTokenLite('AdminModules');
12541254
$helper->tpl_vars = [
12551255
'fields_value' => ['searched_email' => $this->_searched_email],

0 commit comments

Comments
 (0)