mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/15123] add check before enable or disable extension
PHPBB3-15123
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user