diff --git a/ext/oembed/Civi/Oembed/Router.php b/ext/oembed/Civi/Oembed/Router.php index 416beb315d5b..8978deacde8e 100644 --- a/ext/oembed/Civi/Oembed/Router.php +++ b/ext/oembed/Civi/Oembed/Router.php @@ -35,9 +35,9 @@ public function isAllowedRoute(string $route): bool { } $list = explode("\n", \Civi::settings()->get('oembed_allow_other')); - \Civi::dispatcher()->dispatch('civi.oembed.allowRoutes', [ + \Civi::dispatcher()->dispatch('civi.oembed.allowRoutes', \Civi\Core\Event\GenericHookEvent::create([ 'routes' => &$list, - ]); + ])); $matches = \CRM_Utils_String::filterByWildcards($list, [$route]); if (!empty($matches)) { return TRUE;