diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-22 15:42:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-24 10:58:11 +0100 |
commit | 90910290d17390889b5f8ffe97de9105f23d094b (patch) | |
tree | 7449537d6b0dab6589129a40234bb1e85b937655 /lib/private/Template/JSResourceLocator.php | |
parent | 242f8964cf8e98726a4d6e51cfd5200b17211e3e (diff) | |
download | nextcloud-server-90910290d17390889b5f8ffe97de9105f23d094b.tar.gz nextcloud-server-90910290d17390889b5f8ffe97de9105f23d094b.zip |
Add debug mode
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Template/JSResourceLocator.php')
-rw-r--r-- | lib/private/Template/JSResourceLocator.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php index 6f863e859d9..41b44c143ef 100644 --- a/lib/private/Template/JSResourceLocator.php +++ b/lib/private/Template/JSResourceLocator.php @@ -96,6 +96,14 @@ class JSResourceLocator extends ResourceLocator { if ($this->jsCombiner->process($root, $file, $app)) { $this->append($this->serverroot, $this->jsCombiner->getCachedJS($app, $file), false, false); return true; + } else { + // Add all the files from the json + $files = $this->jsCombiner->getContent($root, $file); + $app_url = \OC_App::getAppWebPath($app); + + foreach ($files as $jsFile) { + $this->append($root, $jsFile, $app_url); + } } } |