Skip to content

Commit

Permalink
Support for files_external customjs from apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed May 5, 2017
1 parent 8c80134 commit 3947df7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/files_external/templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
/** @var Backend $backend */
$scripts = $backend->getCustomJs();
foreach ($scripts as $script) {
script('files_external', $script);
if (is_array($script)) {
list($appName, $script) = $script;
} else {
$appName = 'files_external';
}
script($appName, $script);
}
}
foreach ($_['authMechanisms'] as $authMechanism) {
Expand Down

0 comments on commit 3947df7

Please sign in to comment.