summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-01-02 16:59:36 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:39 +0100
commit7b8debc5d36650654fbc6675a6dca64514ed8461 (patch)
treebd1af971cbd33d4dd640973242b40ee361dbce06 /lib
parent350b7ebc860c59665b60d0d45e5c7ab01b84e716 (diff)
downloadnextcloud-server-7b8debc5d36650654fbc6675a6dca64514ed8461.tar.gz
nextcloud-server-7b8debc5d36650654fbc6675a6dca64514ed8461.zip
Remove webroot from file path
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/SCSSCacher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index 67f77688163..bc493a44e7e 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -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);
}
}