Fix webroot throw

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-09-14 08:41:10 +02:00
parent 7698781a1e
commit 1a0ac912b2
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class CSSResourceLocator extends ResourceLocator {
'throw' => $throw ? 'true' : 'false'
]);
if ($throw) {
if ($throw && $root === '/') {
throw new ResourceNotFoundException($file, $webRoot);
}
}