Url generator fix

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2016-11-09 15:18:36 +01:00 committed by Roeland Jago Douma
parent 12717bfd72
commit 6697bae6aa
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}