summaryrefslogtreecommitdiffstats
path: root/apps/files_external/templates
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/templates')
-rw-r--r--apps/files_external/templates/settings.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index 7edd66fe4d5..c9cc40b0ba0 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -1,5 +1,6 @@
<?php
use \OCA\Files_External\Lib\Backend\Backend;
+ use \OCA\Files_External\Lib\Auth\AuthMechanism;
use \OCA\Files_External\Lib\DefinitionParameter;
use \OCA\Files_External\Service\BackendService;
@@ -16,13 +17,16 @@
// load custom JS
foreach ($_['backends'] as $backend) {
/** @var Backend $backend */
- if ($backend->getCustomJs()) {
- script('files_external', $backend->getCustomJs());
+ $scripts = $backend->getCustomJs();
+ foreach ($scripts as $script) {
+ script('files_external', $script);
}
}
foreach ($_['authMechanisms'] as $authMechanism) {
- if ($authMechanism->getCustomJs()) {
- script('files_external', $authMechanism->getCustomJs());
+ /** @var AuthMechanism $authMechanism */
+ $scripts = $authMechanism->getCustomJs();
+ foreach ($scripts as $script) {
+ script('files_external', $script);
}
}