Skip to content

Commit

Permalink
fix permission errors
Browse files Browse the repository at this point in the history
  • Loading branch information
davydovct committed Jun 18, 2018
1 parent 834ebe3 commit 279efd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down
7 changes: 3 additions & 4 deletions 2.x/upload/admin/controller/module/antispambycleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@ 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()) {
$this->model_setting_setting->editSetting('module_antispambycleantalk', $this->request->post);

$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 {
Expand Down

0 comments on commit 279efd5

Please sign in to comment.