X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseObject.php;h=9a2d064750b7d74ca13bc17fd2473323cf3298f8;hb=ce3b1210640ce653ef91cbf033788474c1f88b0c;hp=1a23408ba1e4a4ce24028363966cbb57ea89ee8e;hpb=800dbc7f44ad7b9d2942691b3080c6d96753297e;p=friendica.git diff --git a/src/BaseObject.php b/src/BaseObject.php index 1a23408ba1..9a2d064750 100644 --- a/src/BaseObject.php +++ b/src/BaseObject.php @@ -4,7 +4,7 @@ */ namespace Friendica; -require_once 'boot.php'; +require_once __DIR__ . '/../boot.php'; use Friendica\Network\HTTPException\InternalServerErrorException; @@ -15,6 +15,9 @@ use Friendica\Network\HTTPException\InternalServerErrorException; */ class BaseObject { + /** + * @var App + */ private static $app = null; /** @@ -28,7 +31,7 @@ class BaseObject public static function getApp() { if (empty(self::$app)) { - throw new InternalServerErrorException('App isn\' initialized.'); + throw new InternalServerErrorException('App isn\'t initialized.'); } return self::$app;