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); } }