Skip to content

Commit

Permalink
Import file FileAction 28 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Nov 1, 2023
1 parent 3c2c70c commit 5493404
Show file tree
Hide file tree
Showing 5 changed files with 440 additions and 32 deletions.
7 changes: 6 additions & 1 deletion lib/Listener/LoadContactsFilesActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public function handle(Event $event): void {
return;
}

Util::addScript(Application::APP_ID, 'contacts-files-action');
// only available since Nc 28
if (method_exists(Util::class, 'addInitScript')) {
Util::addInitScript(Application::APP_ID, 'contacts-files-action');
} else {
Util::addScript(Application::APP_ID, 'contacts-files-action');
}
}
}
Loading

0 comments on commit 5493404

Please sign in to comment.