mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/12074] Managing extensions doesn't produce any log entry
PHPBB3-12074
This commit is contained in:
@@ -35,11 +35,13 @@ class disable extends command
|
||||
|
||||
if ($this->manager->enabled($name))
|
||||
{
|
||||
$this->log->add('critical', ANONYMOUS, '', 'LOG_EXT_DISABLE_ERROR', time(), array($name));
|
||||
$output->writeln("<error>Could not disable extension $name</error>");
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_DISABLE', time(), array($name));
|
||||
$output->writeln("<info>Successfully disabled extension $name</info>");
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user