1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-25 16:49:58 +02:00

Merge branch '3.2.x'

This commit is contained in:
Máté Bartus 2017-09-07 14:07:26 +02:00
commit 6459bcf98f

View File

@ -37,11 +37,18 @@ class enable extends command
$io = new SymfonyStyle($input, $output);
$name = $input->getArgument('extension-name');
$extension = $this->manager->get_extension($name);
if (!$extension->is_enableable())
{
$io->error($this->user->lang('CLI_EXTENSION_NOT_ENABLEABLE', $name));
return 1;
}
if ($this->manager->is_enabled($name))
{
$io->error($this->user->lang('CLI_EXTENSION_ENABLED', $name));
return 2;
return 1;
}
$this->manager->enable($name);