]> git.mxchange.org Git - friendica.git/commitdiff
Provide appHelper in Page run() method
authorArt4 <art4@wlabs.de>
Wed, 18 Dec 2024 21:57:39 +0000 (21:57 +0000)
committerArt4 <art4@wlabs.de>
Wed, 18 Dec 2024 21:57:39 +0000 (21:57 +0000)
src/App.php

index 48639177479ad347b451d6d2e21673b02d605361..d3ff15badaa7c74eb03f0b5f2fc3e35d9f3844b1 100644 (file)
@@ -366,7 +366,7 @@ class App
 
                        // Wrapping HTML responses in the theme template
                        if ($response->getHeaderLine(ICanCreateResponses::X_HEADER) === ICanCreateResponses::TYPE_HTML) {
-                               $response = $page->run($this, $this->session, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig, $nav, $this->session->getLocalUserId());
+                               $response = $page->run($this->appHelper, $this->session, $this->baseURL, $this->args, $this->mode, $response, $this->l10n, $this->profiler, $this->config, $pconfig, $nav, $this->session->getLocalUserId());
                        }
 
                        $this->logger->debug('Request processed sucessfully', ['response' => $response->getStatusCode(), 'address' => $server['REMOTE_ADDR'] ?? '', 'request' => $requeststring, 'referer' => $server['HTTP_REFERER'] ?? '', 'user-agent' => $server['HTTP_USER_AGENT'] ?? '', 'duration' => number_format(microtime(true) - $request_start, 3)]);