diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-02 17:13:24 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-02 17:13:24 +0200 |
commit | 87aa9b187e07c8042ae10ab55254068df60a04b0 (patch) | |
tree | 0670d49ef9d1d03641825e58059fa78f3edbd76c /lib | |
parent | 6bda2c26c765e7d563915591d20836005743d265 (diff) | |
download | nextcloud-server-87aa9b187e07c8042ae10ab55254068df60a04b0.tar.gz nextcloud-server-87aa9b187e07c8042ae10ab55254068df60a04b0.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Template/CSSResourceLocator.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php index 750d33fd726..b5c16d1690b 100644 --- a/lib/private/Template/CSSResourceLocator.php +++ b/lib/private/Template/CSSResourceLocator.php @@ -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']); @@ -145,7 +145,7 @@ class CSSResourceLocator extends ResourceLocator { } } - $this->resources[] = [$webRoot? : \OC::$WEBROOT, $webRoot, $file]; + $this->resources[] = [$webRoot ?: \OC::$WEBROOT, $webRoot, $file]; } } } |