aboutsummaryrefslogtreecommitdiffstats
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-09 09:24:07 +0100
commita098b578179c1d7c307b1e97a34d15444ee33c35 (patch)
treeada04ef0ce403d046f5b9de6b71b2d916a95cb6d
parentc4539c34c9ea78f2bc0fa5c038ebad247fd61fdc (diff)
downloadnextcloud-server-a098b578179c1d7c307b1e97a34d15444ee33c35.tar.gz
nextcloud-server-a098b578179c1d7c307b1e97a34d15444ee33c35.zip
Use JSCombiner from server container when searching for JS files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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 d37a8bbabbe..12b063d96e2 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -301,13 +301,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();