]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove webroot from file path
authorLukas Reschke <lukas@statuscode.ch>
Mon, 2 Jan 2017 15:59:36 +0000 (16:59 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 6 Jan 2017 08:42:39 +0000 (09:42 +0100)
The webroot is already provided, otherwise this links to stuff like "/nextcloud/nextcloud/index.php" instead of "/nextcloud/index.php"

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
lib/private/Template/SCSSCacher.php

index 67f77688163f77bb271fe731c4cb18ee884ffaf0..bc493a44e7ed93fa503267c86d7af5be742202b8 100644 (file)
@@ -179,6 +179,6 @@ class SCSSCacher {
                $fileName = array_pop($tmpfileLoc);
                $fileName = str_replace('.scss', '.css', $fileName);
 
-               return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), 1);
+               return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1);
        }
 }