]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Logs view: remove unneeded tpl var
[friendica.git] / src / App.php
index 69167e98f1ceee4e64b340f346074500a5e9cc1e..7c7496c3baf138a0b47d66b9241d2653d39354eb 100644 (file)
@@ -25,6 +25,7 @@ use Exception;
 use Friendica\App\Arguments;
 use Friendica\App\BaseURL;
 use Friendica\App\Module;
+use Friendica\Factory\ConfigFactory;
 use Friendica\Module\Maintenance;
 use Friendica\Security\Authentication;
 use Friendica\Core\Config\Cache;
@@ -132,7 +133,7 @@ class App
         * @param int $user_id
         * @return void
         */
-       public function setUserId(int $user_id)
+       public function setLoggedInUserId(int $user_id)
        {
                $this->user_id = $user_id;
        }
@@ -143,7 +144,7 @@ class App
         * @param int $user_id
         * @return void
         */
-       public function setNickname(string $nickname)
+       public function setLoggedInUserNickname(string $nickname)
        {
                $this->nickname = $nickname;
        }
@@ -352,7 +353,7 @@ class App
                        $this->profiler->update($this->config);
 
                        Core\Hook::loadHooks();
-                       $loader = new ConfigFileLoader($this->getBasePath());
+                       $loader = (new ConfigFactory())->createConfigFileLoader($this->getBasePath(), $_SERVER);
                        Core\Hook::callAll('load_config', $loader);
                }