aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-03-07 12:11:03 +0100
committerJulius Härtl <jus@bitgrid.net>2018-03-07 15:09:43 +0100
commitf652c28b2105792908dc73a414ff21cc135a906d (patch)
tree55d92c815af8322068b132d895ac2c8b94455bb3 /lib/private/TemplateLayout.php
parent50a9beb4bbcfc7baf2a832fef2f6fdf601d8219e (diff)
downloadnextcloud-server-f652c28b2105792908dc73a414ff21cc135a906d.tar.gz
nextcloud-server-f652c28b2105792908dc73a414ff21cc135a906d.zip
Use JSCombiner from server container when searching for JS files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 0f2eb48bef3..c378396c727 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -306,13 +306,7 @@ class TemplateLayout extends \OC_Template {
$theme,
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
- new JSCombiner(
- \OC::$server->getAppDataDir('js'),
- \OC::$server->getURLGenerator(),
- \OC::$server->getMemCacheFactory()->createDistributed('JS'),
- \OC::$server->getSystemConfig(),
- \OC::$server->getLogger()
- )
+ \OC::$server->query(JSCombiner::class)
);
$locator->find($scripts);
return $locator->getResources();