Skip to content

Commit

Permalink
update 2.x version
Browse files Browse the repository at this point in the history
  • Loading branch information
davydov committed Jun 18, 2019
1 parent 29065f8 commit 1ddf6cd
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
27 changes: 11 additions & 16 deletions 2.x - 2.2.x/upload/admin/controller/module/antispambycleantalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ public function index() {

$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true)
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], 'SSL')
);

$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_extension'),
'href' => $this->url->link('marketplace/extension', 'token=' . $this->session->data['token'] . '&type=module', true)
'text' => $this->language->get('text_module'),
'href' => $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL')
);

$data['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('module/antispambycleantalk', 'token=' . $this->session->data['token'], true)
'href' => $this->url->link('module/antispambycleantalk', 'token=' . $this->session->data['token'], 'SSL')
);

$data['action'] = $this->url->link('module/antispambycleantalk', 'token=' . $this->session->data['token'], true);
$data['action'] = $this->url->link('module/antispambycleantalk', 'token=' . $this->session->data['token'], 'SSL');

$data['cancel'] = $this->url->link('marketplace/extension', 'token=' . $this->session->data['token'] . '&type=module', true);
$data['cancel'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL');

if (isset($this->request->post['module_antispambycleantalk_status'])) {
$data['module_antispambycleantalk_status'] = $this->request->post['module_antispambycleantalk_status'];
Expand Down Expand Up @@ -81,21 +81,16 @@ public function index() {
$data['column_left'] = $this->load->controller('common/column_left');
$data['footer'] = $this->load->controller('common/footer');

$this->response->setOutput($this->load->view('module/antispambycleantalk', $data));
$this->response->setOutput($this->load->view('module/antispambycleantalk.tpl', $data));
}

public function install(){
/*$check = $this->db->query("SHOW COLUMNS FROM `" . DB_PREFIX . "order` LIKE 'antispambycleantalk'");
if(!$check->num_rows){
$this->db->query("ALTER TABLE `" . DB_PREFIX . "order` ADD `antispambycleantalk` VARCHAR(255) NULL");
}
*/
$this->load->model('module/antispambycleantalk');
$this->model_module_antispambycleantalk->install();
}

public function uninstall(){
$this->load->model('setting/setting');

$this->model_setting_setting->deleteSetting('module_antispambycleantalk');
$this->load->model('module/antispambycleantalk');
$this->model_module_antispambycleantalk->uninstall();
}

protected function validate() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$_['heading_title'] = 'Antispam by Cleantalk';

// Text
$_['text_extension'] = 'Extensions';
$_['text_module'] = 'Modules';
$_['text_success'] = 'Success: You have modified Antispam by Cleantalk module!';
$_['text_edit'] = 'Edit Antispam by Cleantalk Module';
$_['text_all_category']= 'All';
Expand Down
11 changes: 11 additions & 0 deletions 2.x - 2.2.x/upload/admin/model/module/antispambycleantalk.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
class ModelModuleAntispamByCleantalk extends Model {

public function install(){

}

public function uninstall(){

}
}

0 comments on commit 1ddf6cd

Please sign in to comment.