Skip to content

Commit

Permalink
Merge pull request #3669 from nextcloud/migrate/contacts-newfile-api
Browse files Browse the repository at this point in the history
Import file FileAction 28 compatibility
  • Loading branch information
GretaD authored Nov 1, 2023
2 parents 1b161c2 + 5493404 commit 6cd8952
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 6cd8952

Please sign in to comment.