Created
May 28, 2017 19:03
-
-
Save sileht/5753118ee048352778c2a0c5b23ea47d to your computer and use it in GitHub Desktop.
nextcloud-12.0.0-css-workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uNr nextcloud-12.ori/lib/private/Template/CSSResourceLocator.php nextcloud-12/lib/private/Template/CSSResourceLocator.php | |
--- nextcloud-12.ori/lib/private/Template/CSSResourceLocator.php 2017-05-28 21:03:02.429490871 +0200 | |
+++ nextcloud-12/lib/private/Template/CSSResourceLocator.php 2017-05-28 20:59:23.120606748 +0200 | |
@@ -117,7 +117,7 @@ | |
parent::append($root, $file, $webRoot, $throw); | |
} else { | |
if (!$webRoot) { | |
- $tmpRoot = $root; | |
+ $tmpRoot = realpath($root); | |
/* | |
* traverse the potential web roots upwards in the path | |
* | |
diff -uNr nextcloud-12.ori/lib/private/Template/ResourceLocator.php nextcloud-12/lib/private/Template/ResourceLocator.php | |
--- nextcloud-12.ori/lib/private/Template/ResourceLocator.php 2017-05-28 21:02:51.649447837 +0200 | |
+++ nextcloud-12/lib/private/Template/ResourceLocator.php 2017-05-28 20:59:06.524539015 +0200 | |
@@ -125,7 +125,7 @@ | |
} | |
if (!$webRoot) { | |
- $tmpRoot = $root; | |
+ $tmpRoot = realpath($root); | |
/* | |
* traverse the potential web roots upwards in the path | |
* |
Seems very easy. Do you want to create a pull request ?
You saved my day!
Thank you, very helpful.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, it is working on my system, too!
Simple and elegant :)