Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable27] fix: Disable pdf preview gnerator through Collabora if server already… #3146

Merged
merged 1 commit into from Aug 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/AppInfo/Application.php
Expand Up @@ -170,9 +170,11 @@ public function registerProvider() {
return $container->query(OpenDocument::class);
});

$previewManager->registerProvider('/application\/pdf/', function () use ($container) {
return $container->query(Pdf::class);
});
if (!$previewManager->isMimeSupported('application/pdf')) {
$previewManager->registerProvider('/application\/pdf/', function () use ($container) {
return $container->get(Pdf::class);
});
}
}

public function checkAndEnableCODEServer() {
Expand Down