]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseObject.php
Merge pull request #6773 from nupplaphil/issue/6772-update_query_missmatch
[friendica.git] / src / BaseObject.php
index 84ff193823113a1534e3e407ac2eb712f3fda5f0..4a6fa12d24b03ad18f4542114f1302d8a9e3573e 100644 (file)
@@ -6,7 +6,7 @@ namespace Friendica;
 
 require_once '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;