Appdata location fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
9a21d98824
commit
35b13b856b
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue