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

Fix get_temp_dir compat shim #19023

Closed
wants to merge 1 commit into from
Closed

Fix get_temp_dir compat shim #19023

wants to merge 1 commit into from

Conversation

RobinMcCorkell
Copy link
Member

With #18658 we moved the code to TempManager, but inadvertently moved the function get_temp_dir() from the global namespace to the OC class. This moves it back, and fixes an incorrect function call.

cc @DeepDiver1975 @MorrisJobke @mmattel

Fixes #19021

@scrutinizer-notifier
Copy link

A new inspection was created.

@DeepDiver1975
Copy link
Member

A search in core reveals that this function is only used in office preview - I vote for dropping the function in base.php and fix office preview

@RobinMcCorkell
Copy link
Member Author

@DeepDiver1975 Do we assume that no apps use this? The compat shim isn't very much overhead to keep...

@RobinMcCorkell
Copy link
Member Author

@DeepDiver1975 Alternative approach in #19024. Pick one, close the other 😄

@DeepDiver1975
Copy link
Member

Do we assume that no apps use this?

They are not allowed to use it - this function was never near any public api specification

@RobinMcCorkell RobinMcCorkell deleted the get_temp_dir-fix branch September 14, 2015 18:08
@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP Fatal error: Call to undefined function OC\Preview\get_temp_dir()
3 participants