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
0568c4a502
2 changed files with 8 additions and 0 deletions
|
@ -117,6 +117,7 @@ $lang = array_merge($lang, array(
|
||||||
'CLI_EXTENSION_ENABLE_FAILURE' => 'Could not enable extension %s',
|
'CLI_EXTENSION_ENABLE_FAILURE' => 'Could not enable extension %s',
|
||||||
'CLI_EXTENSION_ENABLE_SUCCESS' => 'Successfully enabled extension %s',
|
'CLI_EXTENSION_ENABLE_SUCCESS' => 'Successfully enabled extension %s',
|
||||||
'CLI_EXTENSION_ENABLED' => 'Extension %s is already enabled',
|
'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_NAME' => 'Name of the extension',
|
||||||
'CLI_EXTENSION_PURGE_FAILURE' => 'Could not purge extension %s',
|
'CLI_EXTENSION_PURGE_FAILURE' => 'Could not purge extension %s',
|
||||||
'CLI_EXTENSION_PURGE_SUCCESS' => 'Successfully purged extension %s',
|
'CLI_EXTENSION_PURGE_SUCCESS' => 'Successfully purged extension %s',
|
||||||
|
|
|
@ -37,6 +37,13 @@ class enable extends command
|
||||||
$io = new SymfonyStyle($input, $output);
|
$io = new SymfonyStyle($input, $output);
|
||||||
|
|
||||||
$name = $input->getArgument('extension-name');
|
$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);
|
$extension = $this->manager->get_extension($name);
|
||||||
|
|
||||||
if (!$extension->is_enableable())
|
if (!$extension->is_enableable())
|
||||||
|
|
Loading…
Add table
Reference in a new issue