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
c4539c34c9
commit
a098b57817
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue