diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-01-02 16:59:36 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-01-06 09:42:39 +0100 |
commit | 7b8debc5d36650654fbc6675a6dca64514ed8461 (patch) | |
tree | bd1af971cbd33d4dd640973242b40ee361dbce06 /lib | |
parent | 350b7ebc860c59665b60d0d45e5c7ab01b84e716 (diff) | |
download | nextcloud-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.php | 2 |
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); } } |