Skip to content

Commit

Permalink
fix(User): load timezone handling related resources
Browse files Browse the repository at this point in the history
- the old style event name does not work here anymore

Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Mar 14, 2024
1 parent 002fbf9 commit 87e7d05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

namespace OCA\User_SAML\AppInfo;

use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCA\User_SAML\DavPlugin;
use OCA\User_SAML\Middleware\OnlyLoggedInMiddleware;
use OCA\User_SAML\SAMLSettings;
Expand Down Expand Up @@ -78,7 +79,7 @@ private function timezoneHandling(): void {
$config = Server::get(IConfig::class);

$dispatcher = Server::get(IEventDispatcher::class);
$dispatcher->addListener('OCA\Files::loadAdditionalScripts', function () use ($session, $config, $userSession) {
$dispatcher->addListener(LoadAdditionalScriptsEvent::class, function () use ($session, $config, $userSession) {
if (!$userSession->isLoggedIn()) {
return;
}
Expand Down

0 comments on commit 87e7d05

Please sign in to comment.