]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseObject.php
rename rawContent() to content()
[friendica.git] / src / BaseObject.php
index 1a23408ba1e4a4ce24028363966cbb57ea89ee8e..9a2d064750b7d74ca13bc17fd2473323cf3298f8 100644 (file)
@@ -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;