Browse Source

Use dispatchTyped

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
tags/v19.0.0beta1
John Molakvoæ (skjnldsv) 4 years ago
parent
commit
3cdadeb9e9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files/lib/Controller/ViewController.php

+ 1
- 1
apps/files/lib/Controller/ViewController.php View File

@@ -284,7 +284,7 @@ class ViewController extends Controller {
$this->eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar());
// Load Viewer scripts
if (class_exists(LoadViewer::class)) {
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
$this->eventDispatcher->dispatchTyped(new LoadViewer());
}

$params = [];

Loading…
Cancel
Save