mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Ensure the Lang class always exists when throwing exceptions
This commit is contained in:
parent
27edcddc9b
commit
40d679844b
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ abstract class AbstractException extends \Exception {
|
|||
$code = self::CODES[$codeID];
|
||||
$msg = "Exception.".str_replace("\\", "/", $class).".$msgID";
|
||||
}
|
||||
$msg = Arsse::$lang->msg($msg, $vars);
|
||||
$msg = (Arsse::$lang ?? new Lang)->msg($msg, $vars);
|
||||
}
|
||||
parent::__construct($msg, $code, $e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue