summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/SCSSCacher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Template/SCSSCacher.php')
-rw-r--r--lib/private/Template/SCSSCacher.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index 0c1711b9fb7..d6f5a2c6fd3 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -63,9 +63,10 @@ class SCSSCacher {
* Process the caching process if needed
* @param string $root Root path to the nextcloud installation
* @param string $file
+ * @param string $app The app name
* @return boolean
*/
- public function process($root, $file) {
+ public function process($root, $file, $app) {
$path = explode('/', $root . '/' . $file);
$fileNameSCSS = array_pop($path);
@@ -78,10 +79,10 @@ class SCSSCacher {
$webDir = implode('/', $webDir);
try {
- $folder = $this->appData->getFolder('core');
+ $folder = $this->appData->getFolder($app);
} catch(NotFoundException $e) {
// creating css appdata folder
- $folder = $this->appData->newFolder('core');
+ $folder = $this->appData->newFolder($app);
}
if($this->isCached($fileNameCSS, $fileNameSCSS, $folder, $path)) {