Philipp Holzer 2019-08-15 17:47:08 +02:00
parent 290dd2ab39
commit 822ba67105
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,7 @@ class App
* @param App\Arguments $args The Friendica Arguments of the call * @param App\Arguments $args The Friendica Arguments of the call
* @param MobileDetect $mobileDetect A mobile detection class * @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->database = $database;
$this->config = $config; $this->config = $config;
@ -279,6 +279,7 @@ class App
$this->argv = $args->getArgv(); $this->argv = $args->getArgv();
$this->argc = $args->getArgc(); $this->argc = $args->getArgc();
$this->query_string = $args->getQueryString(); $this->query_string = $args->getQueryString();
$this->module = $module->getName();
$this->is_mobile = $mobileDetect->isMobile(); $this->is_mobile = $mobileDetect->isMobile();
$this->is_tablet = $mobileDetect->isTablet(); $this->is_tablet = $mobileDetect->isTablet();