1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12074] Managing extensions doesn't produce any log entry

PHPBB3-12074
This commit is contained in:
Tristan Darricau
2014-05-09 00:07:56 +02:00
parent d4fc060bcd
commit a640a455f3
7 changed files with 65 additions and 2 deletions

View File

@@ -35,11 +35,13 @@ class enable extends command
if ($this->manager->enabled($name))
{
$this->log->add('admin', ANONYMOUS, '', 'LOG_EXTENSION_ENABLE', time(), array($name));
$output->writeln("<info>Successfully enabled extension $name</info>");
return 0;
}
else
{
$this->log->add('critical', ANONYMOUS, '', 'LOG_EXT_ENABLE_ERROR', time(), array($name));
$output->writeln("<error>Could not enable extension $name</error>");
return 1;
}