Remove unused webroot

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2017-01-24 17:27:35 +01:00
parent 4ceb2bf84c
commit a440c3e94c
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
1 changed files with 2 additions and 3 deletions

View File

@ -82,14 +82,13 @@ class CSSResourceLocator extends ResourceLocator {
* *
* @param string $root path to check * @param string $root path to check
* @param string $file the filename * @param string $file the filename
* @param string|null $webRoot base for path, default map $root to $webRoot
* @return bool True if the resource was found and cached, false otherwise * @return bool True if the resource was found and cached, false otherwise
*/ */
protected function cacheAndAppendScssIfExist($root, $file, $webRoot = null, $app = 'core') { protected function cacheAndAppendScssIfExist($root, $file, $app = 'core') {
if (is_file($root.'/'.$file)) { if (is_file($root.'/'.$file)) {
if($this->scssCacher !== null) { if($this->scssCacher !== null) {
if($this->scssCacher->process($root, $file, $app)) { if($this->scssCacher->process($root, $file, $app)) {
$this->append($root, $this->scssCacher->getCachedSCSS($app, $file), $webRoot, false); $this->append($root, $this->scssCacher->getCachedSCSS($app, $file), false);
return true; return true;
} else { } else {
$this->logger->error('Failed to compile and/or save '.$root.'/'.$file, ['app' => 'core']); $this->logger->error('Failed to compile and/or save '.$root.'/'.$file, ['app' => 'core']);