FEATURE #1753: add commands for enablind/disabling modules

This commit is contained in:
Michal Kváček
2017-08-01 22:58:59 +02:00
parent c2502a2355
commit 8c15a63c2a
12 changed files with 252 additions and 21 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ class SetTemplate extends Command
$config['staticName'] = $template;
if ($current) {
$this->line('Template is already installed. Currently using template ' . trans($current->name) . ' located in /templates/' . $current->module_settings['staticName'] . '.');
$this->line('Template is already installed. Currently using template ' . trans($current->name) . ' located in /templates/' . $current->static_name . '.');
$confirm = $this->confirm('Uninstall it and install *' . trans($config['name']) . '*? All data associated with installed template will be lost!');
if ($confirm) {
@@ -59,7 +59,7 @@ class SetTemplate extends Command
}
try {
Installer::install($config['name'], $config['alias'], $config['description'], $config['handler'], false, $config);
Installer::install($config['name'], $config['alias'], $current->static_name, $config['description'], $config['handler'], false, $config);
} catch (\Exception $e) {
$this->error('Cannot install template ' . $template . '. Message: ' . $e->getMessage());
return;