Use JSCombiner from server container when searching for JS files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
50a9beb4bb
commit
f652c28b21
|
@ -306,13 +306,7 @@ class TemplateLayout extends \OC_Template {
|
||||||
$theme,
|
$theme,
|
||||||
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
|
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
|
||||||
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
|
array( \OC::$SERVERROOT => \OC::$WEBROOT ),
|
||||||
new JSCombiner(
|
\OC::$server->query(JSCombiner::class)
|
||||||
\OC::$server->getAppDataDir('js'),
|
|
||||||
\OC::$server->getURLGenerator(),
|
|
||||||
\OC::$server->getMemCacheFactory()->createDistributed('JS'),
|
|
||||||
\OC::$server->getSystemConfig(),
|
|
||||||
\OC::$server->getLogger()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
$locator->find($scripts);
|
$locator->find($scripts);
|
||||||
return $locator->getResources();
|
return $locator->getResources();
|
||||||
|
|
Loading…
Reference in New Issue