summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/SCSSCacher.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2016-11-10 16:36:58 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:13 +0100
commit6380d503af3252e0fea8d25e8bbe2f91d5aee1da (patch)
tree3d1e8e834d79ef2263713ed4595d0d538a11114f /lib/private/Template/SCSSCacher.php
parent35b13b856b5ed2ab2c91a171b7c07b9fe60de721 (diff)
downloadnextcloud-server-6380d503af3252e0fea8d25e8bbe2f91d5aee1da.tar.gz
nextcloud-server-6380d503af3252e0fea8d25e8bbe2f91d5aee1da.zip
Css cache folder name fix, route fix and various fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Template/SCSSCacher.php')
-rwxr-xr-xlib/private/Template/SCSSCacher.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index 800b6b18bac..e72e122155c 100755
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -42,7 +42,7 @@ class SCSSCacher {
protected $appData;
/** @var \OCP\IURLGenerator */
protected $urlGenerator;
- /** @var \OCP\Files\IConfig */
+ /** @var \OC\SystemConfig */
protected $systemConfig;
/**
@@ -50,8 +50,10 @@ class SCSSCacher {
* @param string $root
* @param string $file
* @param \OCP\Files\IAppData $appData
+ * @param \OCP\IURLGenerator $urlGenerator
+ * @param \OC\SystemConfig $systemConfig
*/
- public function __construct(\OCP\ILogger $logger, $root, $file, \OCP\Files\IAppData $appData, \OCP\IURLGenerator $urlGenerator, $systemConfig) {
+ public function __construct(\OCP\ILogger $logger, $root, $file, \OCP\Files\IAppData $appData, \OCP\IURLGenerator $urlGenerator, \OC\SystemConfig $systemConfig) {
$this->logger = $logger;
$this->appData = $appData;
$this->urlGenerator = $urlGenerator;
@@ -90,7 +92,6 @@ class SCSSCacher {
} else {
return $this->cache();
}
- return false;
}
/**
@@ -107,7 +108,7 @@ class SCSSCacher {
} catch(NotFoundException $e) {
return false;
}
- return false;
+ return false;
}
/**
@@ -163,9 +164,10 @@ class SCSSCacher {
/**
* Return the cached css file uri
+ * @param string $appName the app name
* @return string
*/
- public function getCachedSCSS() {
- return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $this->fileNameCSS)), 1);
+ public function getCachedSCSS($appName) {
+ return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $this->fileNameCSS, 'appName' => $appName)), 1);
}
}