From 1a0ac912b2aa001180ba20714fdbf2f44a4ca115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Thu, 14 Sep 2017 08:41:10 +0200 Subject: [PATCH] Fix webroot throw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- lib/private/Template/CSSResourceLocator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php index e4b6890529..c8a8c04ab4 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); } }