1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-03 14:32:40 +00:00

Fix early exceptions

This commit is contained in:
J. King 2018-11-06 09:04:51 -05:00
parent 9428d7468a
commit 1a8acdf03f

View file

@ -93,7 +93,7 @@ abstract class AbstractException extends \Exception {
$code = self::CODES[$codeID]; $code = self::CODES[$codeID];
$msg = "Exception.".str_replace("\\", "/", $class).".$msgID"; $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); parent::__construct($msg, $code, $e);
} }