-
Notifications
You must be signed in to change notification settings - Fork 118
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
Open PDF files by default when PDF viewer is disabled #2428
Conversation
lib/Capabilities.php
Outdated
|
||
private $capabilities = null; | ||
|
||
public function __construct(IL10N $l10n, AppConfig $config, CapabilitiesService $capabilitiesService, PermissionManager $permissionManager) { | ||
public function __construct(IL10N $l10n, AppConfig $config, CapabilitiesService $capabilitiesService, PermissionManager $permissionManager, AppManager $appManager) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function __construct(IL10N $l10n, AppConfig $config, CapabilitiesService $capabilitiesService, PermissionManager $permissionManager, AppManager $appManager) { | |
public function __construct(IL10N $l10n, AppConfig $config, CapabilitiesService $capabilitiesService, PermissionManager $permissionManager, IAppManager $appManager) { |
Should use the IAppManager from the OCP namespace which is considered the public and stable API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
Also modified my include path in PhpStorm to just include the public API, should avoid this in the future :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment regarding the app manager, but otherwise LGTM 👍
32a8e31
to
74704d1
Compare
Signed-off-by: Raul <r.ferreira.fuentes@gmail.com>
74704d1
to
63842c7
Compare
/backport to stable25 |
/backport to stable24 |
/backport to stable25 |
/backport to stable24 |
Related to nextcloud/files_pdfviewer#649