From: Philipp Holzer Date: Thu, 15 Aug 2019 15:47:08 +0000 (+0200) Subject: Fixing https://github.com/friendica/friendica/pull/7508#issuecomment-521679624 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=822ba671055748f4d85658e96fbf383374022f74;p=friendica.git Fixing https://github.com/friendica/friendica/pull/7508#issuecomment-521679624 --- diff --git a/src/App.php b/src/App.php index 8a2a20704d..749cbe9cc9 100644 --- a/src/App.php +++ b/src/App.php @@ -262,7 +262,7 @@ class App * @param App\Arguments $args The Friendica Arguments of the call * @param MobileDetect $mobileDetect A mobile detection class */ - public function __construct(Database $database, Configuration $config, App\Mode $mode, App\Router $router, BaseURL $baseURL, LoggerInterface $logger, Profiler $profiler, L10n $l10n, Arguments $args, MobileDetect $mobileDetect) + public function __construct(Database $database, Configuration $config, App\Mode $mode, App\Router $router, BaseURL $baseURL, LoggerInterface $logger, Profiler $profiler, L10n $l10n, Arguments $args, App\Module $module, MobileDetect $mobileDetect) { $this->database = $database; $this->config = $config; @@ -279,6 +279,7 @@ class App $this->argv = $args->getArgv(); $this->argc = $args->getArgc(); $this->query_string = $args->getQueryString(); + $this->module = $module->getName(); $this->is_mobile = $mobileDetect->isMobile(); $this->is_tablet = $mobileDetect->isTablet();