aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/extension/disable.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-05-09 00:07:56 +0200
committerTristan Darricau <github@nicofuma.fr>2014-05-09 00:07:56 +0200
commita640a455f35ccec26a80e9f9de5693dbb9e71c85 (patch)
treed5eb6889abf7337fe613bf90944843283aadd9f7 /phpBB/phpbb/console/command/extension/disable.php
parentd4fc060bcd61228fdf78da4f2d290a7a17546c46 (diff)
downloadforums-a640a455f35ccec26a80e9f9de5693dbb9e71c85.tar
forums-a640a455f35ccec26a80e9f9de5693dbb9e71c85.tar.gz
forums-a640a455f35ccec26a80e9f9de5693dbb9e71c85.tar.bz2
forums-a640a455f35ccec26a80e9f9de5693dbb9e71c85.tar.xz
forums-a640a455f35ccec26a80e9f9de5693dbb9e71c85.zip
[ticket/12074] Managing extensions doesn't produce any log entry
PHPBB3-12074
Diffstat (limited to 'phpBB/phpbb/console/command/extension/disable.php')
-rw-r--r--phpBB/phpbb/console/command/extension/disable.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/phpbb/console/command/extension/disable.php b/phpBB/phpbb/console/command/extension/disable.php
index e4de70ca34..fb0c23762f 100644
--- a/phpBB/phpbb/console/command/extension/disable.php
+++ b/phpBB/phpbb/console/command/extension/disable.php
@@ -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;
}