mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
6459bcf98f
1 changed files with 8 additions and 1 deletions
|
@ -37,11 +37,18 @@ class enable extends command
|
||||||
$io = new SymfonyStyle($input, $output);
|
$io = new SymfonyStyle($input, $output);
|
||||||
|
|
||||||
$name = $input->getArgument('extension-name');
|
$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))
|
if ($this->manager->is_enabled($name))
|
||||||
{
|
{
|
||||||
$io->error($this->user->lang('CLI_EXTENSION_ENABLED', $name));
|
$io->error($this->user->lang('CLI_EXTENSION_ENABLED', $name));
|
||||||
return 2;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->manager->enable($name);
|
$this->manager->enable($name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue