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

Open PDF files by default when PDF viewer is disabled #2428

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

Raudius
Copy link
Contributor

@Raudius Raudius commented Sep 6, 2022

@Raudius Raudius added the 3. to review Ready to be reviewed label Sep 6, 2022

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Contributor Author

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 :)

Copy link
Member

@juliusknorr juliusknorr left a 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 👍

Signed-off-by: Raul <r.ferreira.fuentes@gmail.com>
@juliusknorr juliusknorr merged commit 85e83e9 into master Sep 22, 2022
@delete-merged-branch delete-merged-branch bot deleted the enh/default_pdf branch September 22, 2022 19:13
@juliusknorr
Copy link
Member

/backport to stable25

@juliusknorr
Copy link
Member

/backport to stable24

@juliusknorr
Copy link
Member

/backport to stable25

@juliusknorr
Copy link
Member

/backport to stable24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants