diff --git a/lib/AbstractException.php b/lib/AbstractException.php index a4310603..38ff02bb 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); }