X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseObject.php;h=7e90478a9d613a378bf28dace96144a9b38f94b5;hb=5ed48ba4257b3017af5833e65a5ce58a23a35df3;hp=84ff193823113a1534e3e407ac2eb712f3fda5f0;hpb=3282ce53894b624893ee2989747a59866ab4b137;p=friendica.git diff --git a/src/BaseObject.php b/src/BaseObject.php index 84ff193823..7e90478a9d 100644 --- a/src/BaseObject.php +++ b/src/BaseObject.php @@ -4,9 +4,9 @@ */ namespace Friendica; -require_once 'boot.php'; +require_once __DIR__ . '/../boot.php'; -use Friendica\Util\LoggerFactory; +use Friendica\Network\HTTPException\InternalServerErrorException; /** * Basic object @@ -28,8 +28,7 @@ class BaseObject public static function getApp() { if (empty(self::$app)) { - $logger = $logger = LoggerFactory::create('app'); - self::$app = new App(dirname(__DIR__), $logger); + throw new InternalServerErrorException('App isn\'t initialized.'); } return self::$app;