Use the correct root to determinate the webroot for the resource
Since all the compiled routes are based on the server webroot, we have to use this, independent from which app this belongs to. Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
77edd1e11d
commit
fc0cdbb4a0
|
@ -109,7 +109,7 @@ class CSSResourceLocator extends ResourceLocator {
|
|||
if (is_file($root.'/'.$file)) {
|
||||
if ($this->scssCacher !== null) {
|
||||
if ($this->scssCacher->process($root, $file, $app)) {
|
||||
$this->append($root, $this->scssCacher->getCachedSCSS($app, $file), \OC::$WEBROOT, true, true);
|
||||
$this->append($this->serverroot, $this->scssCacher->getCachedSCSS($app, $file), \OC::$WEBROOT, true, true);
|
||||
return true;
|
||||
} else {
|
||||
$this->logger->warning('Failed to compile and/or save '.$root.'/'.$file, ['app' => 'core']);
|
||||
|
|
Loading…
Reference in New Issue