1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/15123] add check before enable or disable extension

PHPBB3-15123
This commit is contained in:
Rubén Calvo
2017-03-11 20:34:40 +01:00
parent 5d597787eb
commit 891aab0593
3 changed files with 16 additions and 0 deletions

View File

@@ -37,6 +37,13 @@ class disable extends command
$io = new SymfonyStyle($input, $output);
$name = $input->getArgument('extension-name');
if (!$this->manager->is_enabled($name))
{
$io->error($this->user->lang('CLI_EXTENSION_ALREADY_DISABLED', $name));
return 1;
}
$this->manager->disable($name);
$this->manager->load_extensions();