Skip to content

Commit

Permalink
Update module.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Jan 24, 2021
1 parent 7357b57 commit 4d01789
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions upload/admin/controller/extension/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ public function getList() {
} else {
$setting_info = [];
}


echo $setting_info['status'] . "\n";

$module_data[] = [
'module_id' => $module['module_id'],
'name' => $module['name'],
Expand All @@ -165,9 +167,15 @@ public function getList() {
];
}

if ($module_data) {
$status = '';
} else {
$status = $this->config->has('module_' . $code . '_status') ? $this->language->get('text_enabled') : $this->language->get('text_disabled');
}

$data['extensions'][] = [
'name' => $this->language->get($code . '_heading_title'),
'status' => $this->config->get('module_' . $code . '_status') ? $this->language->get('text_enabled') : $this->language->get('text_disabled'),
'status' => $status,
'module' => $module_data,
'install' => $this->url->link('extension/module|install', 'user_token=' . $this->session->data['user_token'] . '&extension=' . $extension . '&code=' . $code),
'uninstall' => $this->url->link('extension/module|uninstall', 'user_token=' . $this->session->data['user_token'] . '&extension=' . $extension . '&code=' . $code),
Expand Down

0 comments on commit 4d01789

Please sign in to comment.