Fix undefined variable $tmpRoot

Refactoring of webroot detection left an unused variable.

Fixes: #6415
Signed-off-by: Axel Helmert <info@luka.de>
This commit is contained in:
Axel Helmert 2017-09-12 12:14:27 +02:00
parent 88731848c6
commit 01d4967130
1 changed files with 5 additions and 5 deletions

View File

@ -128,14 +128,14 @@ class CSSResourceLocator extends ResourceLocator {
'webRoot' => $webRoot, 'webRoot' => $webRoot,
'throw' => $throw ? 'true' : 'false' 'throw' => $throw ? 'true' : 'false'
]); ]);
}
}
if ($throw && $tmpRoot === '/') { if ($throw) {
throw new ResourceNotFoundException($file, $webRoot); throw new ResourceNotFoundException($file, $webRoot);
} }
}
}
$this->resources[] = array($tmpRoot, $webRoot, $file); $this->resources[] = array($webRoot? : '/', $webRoot, $file);
} }
} }
} }