Fix catching throwables

This commit is contained in:
Dennis Eichhorn 2018-08-11 14:51:53 +02:00
parent 356027981f
commit 2b29a3c012

View File

@ -158,7 +158,7 @@ final class L11nManager
if (!isset($this->language[$code][$module][$translation])) {
return 'ERROR';
}
} catch (\Exception $e) {
} catch (\Throwable $e) {
FileLogger::getInstance()->warning(FileLogger::MSG_FULL, [
'message' => 'Undefined translation for \'' . $code . '/' . $module . '/' . $translation . '\'.',
]);