aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/exception_subscriber.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2017-09-10 12:54:10 +0200
committerTristan Darricau <github@nicofuma.fr>2017-09-10 13:34:31 +0200
commit6e86cd9e15241e9d1ce5fc3eaaf3844c155cc3e9 (patch)
treec5e5d0442ac9491aa2578a9ed63f5cb7db6483de /phpBB/phpbb/console/exception_subscriber.php
parente465af28d11d97b4a48efb2dc9bb277921b63def (diff)
downloadforums-6e86cd9e15241e9d1ce5fc3eaaf3844c155cc3e9.tar
forums-6e86cd9e15241e9d1ce5fc3eaaf3844c155cc3e9.tar.gz
forums-6e86cd9e15241e9d1ce5fc3eaaf3844c155cc3e9.tar.bz2
forums-6e86cd9e15241e9d1ce5fc3eaaf3844c155cc3e9.tar.xz
forums-6e86cd9e15241e9d1ce5fc3eaaf3844c155cc3e9.zip
[ticket/15298] Never suppress exception trace when using CLI
PHPBB3-15298
Diffstat (limited to 'phpBB/phpbb/console/exception_subscriber.php')
-rw-r--r--phpBB/phpbb/console/exception_subscriber.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/phpBB/phpbb/console/exception_subscriber.php b/phpBB/phpbb/console/exception_subscriber.php
index b920d4abae..b240993203 100644
--- a/phpBB/phpbb/console/exception_subscriber.php
+++ b/phpBB/phpbb/console/exception_subscriber.php
@@ -29,12 +29,10 @@ class exception_subscriber implements EventSubscriberInterface
* Construct method
*
* @param \phpbb\language\language $language Language object
- * @param bool $debug Debug mode
*/
- public function __construct(\phpbb\language\language $language, $debug = false)
+ public function __construct(\phpbb\language\language $language)
{
$this->language = $language;
- $this->debug = $debug;
}
/**
@@ -52,14 +50,7 @@ class exception_subscriber implements EventSubscriberInterface
$parameters = array_merge(array($original_exception->getMessage()), $original_exception->get_parameters());
$message = call_user_func_array(array($this->language, 'lang'), $parameters);
- if ($this->debug)
- {
- $exception = new \RuntimeException($message , $original_exception->getCode(), $original_exception);
- }
- else
- {
- $exception = new \RuntimeException($message , $original_exception->getCode());
- }
+ $exception = new \RuntimeException($message , $original_exception->getCode(), $original_exception);
$event->setException($exception);
}