]> git.mxchange.org Git - friendica.git/commitdiff
Bugfixing index.php
authorPhilipp Holzer <admin@philipp.info>
Sun, 17 Feb 2019 23:26:38 +0000 (00:26 +0100)
committerPhilipp Holzer <admin@philipp.info>
Sun, 17 Feb 2019 23:53:00 +0000 (00:53 +0100)
index.php
src/App.php

index 47264362c52edf42a0430fda678c02ed55b27047..e989872893b2deb01f2966b854ff35da5b1b7797 100644 (file)
--- a/index.php
+++ b/index.php
@@ -12,6 +12,6 @@ if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
 
 require __DIR__ . '/vendor/autoload.php';
 
-$a = Factory\DependencyFactory::setUp('index', __DIR__, true);
+$a = Factory\DependencyFactory::setUp('index', __DIR__, false);
 
 $a->runFrontend();
index ca2b6dfc21770a994581f64d0e82b1fce76cd9f8..f48abcf9cbda92c1238e27083c73497e720da024 100644 (file)
@@ -214,18 +214,18 @@ class App
         */
        public function __construct(Configuration $config, LoggerInterface $logger, Profiler $profiler, $isBackend = true)
        {
+               BaseObject::setApp($this);
+
                $this->logger   = $logger;
                $this->config   = $config;
                $this->profiler = $profiler;
                $this->basePath = $this->config->get('system', 'basepath');
 
                if (!Core\System::isDirectoryUsable($this->basePath, false)) {
-                       throw new Exception('Basepath ' . $this->basePath . ' isn\'t usable.');
+                       throw new Exception('Basepath \'' . $this->basePath . '\' isn\'t usable.');
                }
                $this->basePath = rtrim($this->basePath, DIRECTORY_SEPARATOR);
 
-               BaseObject::setApp($this);
-
                $this->checkBackend($isBackend);
                $this->checkFriendicaApp();