aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/list.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-12-09 14:24:57 +0100
committerRobin Appelman <robin@icewind.nl>2019-12-09 14:24:57 +0100
commit1c585d2c502482624497f8e7d82a4f75f70c439c (patch)
treee7eed91f824f3aaa3530dbbd46f737e90ca5aa0e /apps/files_sharing/list.php
parent7d1206f6f2e6b54bb3d6f9cdb0d8a00de7a1ba9d (diff)
downloadnextcloud-server-1c585d2c502482624497f8e7d82a4f75f70c439c.tar.gz
nextcloud-server-1c585d2c502482624497f8e7d82a4f75f70c439c.zip
use OCP\EventDispatcher\GenericEvent in more places
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/list.php')
-rw-r--r--apps/files_sharing/list.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php
index fdff5d36c76..bde3ddd95e7 100644
--- a/apps/files_sharing/list.php
+++ b/apps/files_sharing/list.php
@@ -21,6 +21,7 @@
*/
use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCA\Files\Event\LoadSidebar;
+use OCP\EventDispatcher\GenericEvent;
// Check if we are a user
OCP\User::checkLoggedIn();
@@ -37,7 +38,7 @@ $tmpl = new OCP\Template('files_sharing', 'list', '');
$tmpl->assign('showgridview', $showgridview && !$isIE);
// fire script events
-$eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');
+$eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent());
$eventDispatcher->dispatch(LoadAdditionalScriptsEvent::class, new LoadAdditionalScriptsEvent());
$eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar());