From 1a8acdf03f7e1e10ddd3cb9341b2b9827f876cb7 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 6 Nov 2018 09:04:51 -0500 Subject: [PATCH] Fix early exceptions --- lib/AbstractException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AbstractException.php b/lib/AbstractException.php index a431060..38ff02b 100644 --- a/lib/AbstractException.php +++ b/lib/AbstractException.php @@ -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); }