mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-23 17:10:53 +01:00
Merge branch '3.2.x'
This commit is contained in:
commit
0568c4a502
@ -117,6 +117,7 @@ $lang = array_merge($lang, array(
|
||||
'CLI_EXTENSION_ENABLE_FAILURE' => 'Could not enable extension %s',
|
||||
'CLI_EXTENSION_ENABLE_SUCCESS' => 'Successfully enabled extension %s',
|
||||
'CLI_EXTENSION_ENABLED' => 'Extension %s is already enabled',
|
||||
'CLI_EXTENSION_NOT_EXIST' => 'Extension %s does not exist',
|
||||
'CLI_EXTENSION_NAME' => 'Name of the extension',
|
||||
'CLI_EXTENSION_PURGE_FAILURE' => 'Could not purge extension %s',
|
||||
'CLI_EXTENSION_PURGE_SUCCESS' => 'Successfully purged extension %s',
|
||||
|
@ -37,6 +37,13 @@ class enable extends command
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
$name = $input->getArgument('extension-name');
|
||||
|
||||
if (!$this->manager->is_available($name))
|
||||
{
|
||||
$io->error($this->user->lang('CLI_EXTENSION_NOT_EXIST', $name));
|
||||
return 1;
|
||||
}
|
||||
|
||||
$extension = $this->manager->get_extension($name);
|
||||
|
||||
if (!$extension->is_enableable())
|
||||
|
Loading…
x
Reference in New Issue
Block a user