Appdata location fix

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2016-11-10 16:22:03 +01:00 committed by Roeland Jago Douma
parent 9a21d98824
commit 35b13b856b
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 5 additions and 3 deletions

View File

@ -72,10 +72,10 @@ class SCSSCacher {
$this->rootCssLoc = implode('/', $this->rootCssLoc);
try {
$this->folder = $this->appData->getFolder('css');
$this->folder = $this->appData->getFolder('core');
} catch(NotFoundException $e) {
// creating css appdata folder
$this->folder = $this->appData->newFolder('css');
$this->folder = $this->appData->newFolder('core');
}
}

View File

@ -189,7 +189,9 @@ class TemplateLayout extends \OC_Template {
$theme,
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
\OC::$server->getAppDataDir('server'));
\OC::$server->getAppDataDir('css'),
\OC::$server->getURLGenerator(),
\OC::$server->getSystemConfig());
$locator->find($styles);
return $locator->getResources();
}