-
-
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 usage of deprecated OC.webroot #11691
Conversation
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.
Good stuff
Please add to #11045 It's also in:
|
Done, except for that one. Where can I find the repo?
API not removed, so not adding this to the ticket. |
|
Mind sharing where that infinite recursion starts? |
I'm not gonna comment on my latest commit. |
core/js/js.js
Outdated
@@ -293,7 +293,7 @@ var OCP = {}, | |||
* @since 8.2 | |||
*/ | |||
getRootPath: function() { | |||
return OC.getRootPath(); | |||
return OC.webroot; |
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.
🤣
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.
Tested and works 👍
JSUnit fails ... |
Signed-off-by: Christoph Wurst <[email protected]>
b84b9fe
to
9af69ca
Compare
Fixed the tests, squashed and rebased. |
Ref
server/core/js/js.js
Lines 53 to 62 in d07c5db
This is a big one. I deem it's a bad idea to remove this now (even though from a deprecation time line it would be okay) because it's used so much. However, I search-and-replace'd all usages I could find locally.