From 279efd54b78318aa87e880247aa1e5552a4862e9 Mon Sep 17 00:00:00 2001 From: davydovct Date: Mon, 18 Jun 2018 22:56:24 +0500 Subject: [PATCH] fix permission errors --- .../controller/extension/module/antispambycleantalk.php | 2 +- 2.x/upload/admin/controller/module/antispambycleantalk.php | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/2.3.x/upload/admin/controller/extension/module/antispambycleantalk.php b/2.3.x/upload/admin/controller/extension/module/antispambycleantalk.php index 940f296..34c3f86 100644 --- a/2.3.x/upload/admin/controller/extension/module/antispambycleantalk.php +++ b/2.3.x/upload/admin/controller/extension/module/antispambycleantalk.php @@ -14,7 +14,7 @@ public function index() { $this->session->data['success'] = $this->language->get('text_success'); - $this->response->redirect($this->url->link('marketplace/extension', 'token=' . $this->session->data['token'] . '&type=module', true)); + $this->response->redirect($this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=module', true)); } if (isset($this->error['warning'])) { diff --git a/2.x/upload/admin/controller/module/antispambycleantalk.php b/2.x/upload/admin/controller/module/antispambycleantalk.php index 3210e8b..46e7773 100644 --- a/2.x/upload/admin/controller/module/antispambycleantalk.php +++ b/2.x/upload/admin/controller/module/antispambycleantalk.php @@ -5,6 +5,8 @@ class ControllerModuleAntispamByCleantalk extends Controller { public function index() { $data = $this->load->language('module/antispambycleantalk'); + $this->document->setTitle($this->language->get('heading_title')); + $this->load->model('setting/setting'); if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) { @@ -12,12 +14,9 @@ public function index() { $this->session->data['success'] = $this->language->get('text_success'); - $this->response->redirect($this->url->link('marketplace/extension', 'token=' . $this->session->data['token'] . '&type=module', true)); + $this->response->redirect($this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL')); } - $data['heading_title'] = $this->language->get('heading_title'); - $data['text_edit'] = $this->language->get('text_edit'); - if (isset($this->error['warning'])) { $data['error_warning'] = $this->error['warning']; } else {