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:
parent
88731848c6
commit
01d4967130
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue