Fix undefined variable $tmpRoot#6452
Conversation
| } | ||
|
|
||
| $this->resources[] = array($tmpRoot, $webRoot, $file); | ||
| $this->resources[] = array($webRoot? : '/', $webRoot, $file); |
There was a problem hiding this comment.
I'm not sure if this slash is required by the calling code, so I added it if $webRoot is set to '', as it was before refactoring where $tmpRoot contained '/'. Just to make sure the implementation stays compatible.
|
Caused by #6332 |
Refactoring of webroot detection left an unused variable. Fixes: nextcloud#6415 Signed-off-by: Axel Helmert <info@luka.de>
4d0da5d to
01d4967
Compare
Codecov Report
@@ Coverage Diff @@
## master #6452 +/- ##
===========================================
+ Coverage 53.4% 53.4% +<.01%
Complexity 22518 22518
===========================================
Files 1407 1407
Lines 87093 87096 +3
Branches 1328 1329 +1
===========================================
+ Hits 46509 46512 +3
Misses 40584 40584
|
|
Recommited - forgot to sign off 😵 |
|
Restarted the tests, don't think it's related to this pr! |
rullzer
left a comment
There was a problem hiding this comment.
makes sense and error seems to be gone :)
|
Okay, I don't know why, but since the merge, it broke my dev install. Reverting the changes makes everything works again! :( |
And so on..... |
|
Yes it breaks for me as well. I guess there was some caching going on. Let me revert |
|
@rullzer patch is here! Do not revert! |
Refactoring of webroot detection left an unused variable as reported in #6415.
This PR fixes this issue.