mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Fix catching throwables
This commit is contained in:
parent
356027981f
commit
2b29a3c012
|
|
@ -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 . '\'.',
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user