Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-02-09 15:52:27 +0300
committerJoas Schilling <coding@schilljs.com>2021-02-12 09:47:54 +0300
commit3eb05c163f79039c5bcd8a0be252502927a17cbb (patch)
tree8bbe61af63b28e6be183cbdd8be2ddfdc3287894 /lib
parentb333b4d0c93a6f8ecb90955887eb647404fb59dc (diff)
Make sure that collections scripts event is properly emitted
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PageController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index d3246e1d0..5b2cdc866 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -43,6 +43,7 @@ use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\Template\PublicTemplateResponse;
+use OCP\EventDispatcher\GenericEvent;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\IRootFolder;
use OCP\ICacheFactory;
@@ -249,6 +250,7 @@ class PageController extends Controller {
$this->eventDispatcher->dispatchTyped(new LoadViewer());
}
+ $this->eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent());
$response = new TemplateResponse($this->appName, 'index');
$csp = new ContentSecurityPolicy();
$csp->addAllowedConnectDomain('*');