diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-20 14:58:34 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-05-20 14:58:34 +0200 |
commit | 384d25896f9a26e539d265bf9c388076f4fe9661 (patch) | |
tree | 2acac5d303cb442a76582e111c1591c5bdf7758b /lib/Controller/PageController.php | |
parent | 494e6b0835cb7cacc890d9ae8ad3b855dc69de39 (diff) |
Add template data as the app parameter is currently not public
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r-- | lib/Controller/PageController.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 2ee61ccc3..0cada87b2 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -25,6 +25,7 @@ declare(strict_types=1); namespace OCA\Talk\Controller; +use OCA\Talk\AppInfo\Application; use OCA\Talk\Exceptions\ParticipantNotFoundException; use OCA\Talk\Exceptions\RoomNotFoundException; use OCA\Talk\Config; @@ -251,7 +252,9 @@ class PageController extends Controller { } $this->eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent()); - $response = new TemplateResponse($this->appName, 'index'); + $response = new TemplateResponse($this->appName, 'index', [ + 'app' => Application::APP_ID, + ]); $csp = new ContentSecurityPolicy(); $csp->addAllowedConnectDomain('*'); $csp->addAllowedMediaDomain('blob:'); |