X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseObject.php;h=4a6fa12d24b03ad18f4542114f1302d8a9e3573e;hb=3cd654e76f32dbcf505aef6a60a3e42d318f8b61;hp=33ed67754674b34731bef4eab345df47be755468;hpb=acaee626f5f23f4c1dc19c31896a0797a251b58f;p=friendica.git diff --git a/src/BaseObject.php b/src/BaseObject.php index 33ed677546..4a6fa12d24 100644 --- a/src/BaseObject.php +++ b/src/BaseObject.php @@ -4,6 +4,10 @@ */ namespace Friendica; +require_once 'boot.php'; + +use Friendica\Network\HTTPException\InternalServerErrorException; + /** * Basic object * @@ -19,11 +23,12 @@ class BaseObject * Same as get_app from boot.php * * @return App + * @throws \Exception */ public static function getApp() { if (empty(self::$app)) { - self::$app = new App(dirname(__DIR__)); + throw new InternalServerErrorException('App isn\'t initialized.'); } return self::$app;