]> source.dussan.org Git - nextcloud-server.git/commitdiff
Url generator fix
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Wed, 9 Nov 2016 14:18:36 +0000 (15:18 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 6 Jan 2017 08:42:13 +0000 (09:42 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
lib/private/Template/SCSSCacher.php

index c9a7045d5929956f0cbf4f0beaa7d7c65d02bf85..42f3e1758f8aff0649a67e2e1eaa4cb23f6032e0 100755 (executable)
@@ -24,6 +24,7 @@ namespace OC\Template;
 use Leafo\ScssPhp\Compiler;
 use Leafo\ScssPhp\Exception\ParserException;
 use OCP\Files\NotFoundException;
+use OCP\IURLGenerator;
 
 class SCSSCacher {
 
@@ -158,6 +159,6 @@ class SCSSCacher {
         * @return string
         */
        public function getCachedSCSS() {
-               return "index.php/css/".$this->fileNameCSS;
+               return substr(\OC::$server->getURLGenerator()->linkToRoute('core.Css.getCss', array('fileName' => $this->fileNameCSS)), 1);
        }
 }