diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-12-09 23:24:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-09 23:24:55 +0300 |
commit | 0360ab408e14a7f59f82380b8c2d70b837526651 (patch) | |
tree | e41e15badb3931eb59e140a069f142aea108e82d /apps/files_sharing/list.php | |
parent | 061b9bb0e7445a005f07ca98bdc21c0180d4182f (diff) | |
parent | 1c585d2c502482624497f8e7d82a4f75f70c439c (diff) |
Merge pull request #18256 from nextcloud/files-aditional-scripts-new-events
Use non-depricated events for loading additional scripts in files app
Diffstat (limited to 'apps/files_sharing/list.php')
-rw-r--r-- | apps/files_sharing/list.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php index 9dd399f2dcd..df0dd16bf43 100644 --- a/apps/files_sharing/list.php +++ b/apps/files_sharing/list.php @@ -22,6 +22,7 @@ */ use OCA\Files\Event\LoadAdditionalScriptsEvent; use OCA\Files\Event\LoadSidebar; +use OCP\EventDispatcher\GenericEvent; // Check if we are a user OCP\User::checkLoggedIn(); @@ -38,7 +39,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()); |