diff options
Diffstat (limited to 'phpBB/phpbb/console/command/extension/enable.php')
| -rw-r--r-- | phpBB/phpbb/console/command/extension/enable.php | 21 | 
1 files changed, 13 insertions, 8 deletions
| diff --git a/phpBB/phpbb/console/command/extension/enable.php b/phpBB/phpbb/console/command/extension/enable.php index ee7dae76aa..59ff11e9b7 100644 --- a/phpBB/phpbb/console/command/extension/enable.php +++ b/phpBB/phpbb/console/command/extension/enable.php @@ -1,9 +1,13 @@  <?php  /**  * -* @package phpBB3 -* @copyright (c) 2013 phpBB Group -* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file.  *  */  namespace phpbb\console\command\extension; @@ -18,11 +22,11 @@ class enable extends command  	{  		$this  			->setName('extension:enable') -			->setDescription('Enables the specified extension.') +			->setDescription($this->user->lang('CLI_DESCRIPTION_ENABLE_EXTENSION'))  			->addArgument(  				'extension-name',  				InputArgument::REQUIRED, -				'Name of the extension' +				$this->user->lang('CLI_EXTENSION_NAME')  			)  		;  	} @@ -33,14 +37,15 @@ class enable extends command  		$this->manager->enable($name);  		$this->manager->load_extensions(); -		if ($this->manager->enabled($name)) +		if ($this->manager->is_enabled($name))  		{ -			$output->writeln("<info>Successfully enabled extension $name</info>"); +			$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_ENABLE', time(), array($name)); +			$output->writeln('<info>' . $this->user->lang('CLI_EXTENSION_ENABLE_SUCCESS', $name) . '</info>');  			return 0;  		}  		else  		{ -			$output->writeln("<error>Could not enable extension $name</error>"); +			$output->writeln('<error>' . $this->user->lang('CLI_EXTENSION_ENABLE_FAILURE', $name) . '</error>');  			return 1;  		}  	} | 
