summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-14 08:41:10 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-14 08:41:10 +0200
commit1a0ac912b2aa001180ba20714fdbf2f44a4ca115 (patch)
tree27ca6dc0e8b8d1e874414ed3c5680cd0f230ce83 /lib
parent7698781a1e47263c941533b42d2401092284b76b (diff)
downloadnextcloud-server-1a0ac912b2aa001180ba20714fdbf2f44a4ca115.tar.gz
nextcloud-server-1a0ac912b2aa001180ba20714fdbf2f44a4ca115.zip
Fix webroot throw
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/CSSResourceLocator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php
index e4b6890529e..c8a8c04ab47 100644
--- a/lib/private/Template/CSSResourceLocator.php
+++ b/lib/private/Template/CSSResourceLocator.php
@@ -129,7 +129,7 @@ class CSSResourceLocator extends ResourceLocator {
'throw' => $throw ? 'true' : 'false'
]);
- if ($throw) {
+ if ($throw && $root === '/') {
throw new ResourceNotFoundException($file, $webRoot);
}
}