aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-30 22:09:36 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:14 +0100
commit7bd9087f9e2dbf3cc5ae7d728a9583caa3f96e80 (patch)
treea96a6c331522b902a5e1ca183284411c11afe0d2 /lib/private/TemplateLayout.php
parentd64d661ef5097bd5b5065f0f7df02f19a7442420 (diff)
downloadnextcloud-server-7bd9087f9e2dbf3cc5ae7d728a9583caa3f96e80.tar.gz
nextcloud-server-7bd9087f9e2dbf3cc5ae7d728a9583caa3f96e80.zip
Inject SCSSCacher
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 8ba5bc561f0..67ba831dfaf 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -36,6 +36,7 @@
namespace OC;
use OC\Template\JSConfigHelper;
+use OC\Template\SCSSCacher;
class TemplateLayout extends \OC_Template {
@@ -193,14 +194,19 @@ class TemplateLayout extends \OC_Template {
// Read the selected theme from the config file
$theme = \OC_Util::getTheme();
+ $SCSSCacher = new SCSSCacher(
+ \OC::$server->getLogger(),
+ \OC::$server->getAppDataDir('css'),
+ \OC::$server->getURLGenerator(),
+ \OC::$server->getSystemConfig()
+ );
+
$locator = new \OC\Template\CSSResourceLocator(
\OC::$server->getLogger(),
$theme,
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
- \OC::$server->getAppDataDir('css'),
- \OC::$server->getURLGenerator(),
- \OC::$server->getSystemConfig());
+ $SCSSCacher);
$locator->find($styles);
return $locator->getResources();
}