-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix \OC_App::getCurrentApp() when being called from CLI or phpunit #31876
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
if (\OC::$CLI) { | ||
return ''; | ||
} |
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.
Is this related? What does it fix?
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.
It fixes the case when this is called via cron/cli/occ
We don't need to do anything in that case, but it's not set to true when running tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
/backport to stable23 |
Fixes the failing tests in activity: nextcloud/activity#777