diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-02 11:54:21 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-02 11:59:17 -0500 |
commit | d65cb7ae0954e89de0a1b56170ffab683c39e3cc (patch) | |
tree | 6646c7acaa8795c6fd250d56a6e127ba2bf8f056 /apps/files_external/templates | |
parent | a69de3a8f1dd3ef9a17b0f65b7058681eebb6145 (diff) | |
download | nextcloud-server-d65cb7ae0954e89de0a1b56170ffab683c39e3cc.tar.gz nextcloud-server-d65cb7ae0954e89de0a1b56170ffab683c39e3cc.zip |
Fix 'Grant Access' button for multiple Google Drive mount points and prevent multiple scripts being added
Diffstat (limited to 'apps/files_external/templates')
-rw-r--r-- | apps/files_external/templates/settings.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index 9702ebfb4c7..6f22de392fa 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -73,9 +73,8 @@ <?php endif; ?> <?php endif; ?> <?php endforeach; ?> - <?php if (isset($_['backends'][$mount['class']]['custom'])): ?> - <?php OCP\Util::addScript('files_external', - $_['backends'][$mount['class']]['custom']); ?> + <?php if (isset($_['backends'][$mount['class']]['custom']) && !in_array('files_external/js/'.$_['backends'][$mount['class']]['custom'], \OC_Util::$scripts)): ?> + <?php OCP\Util::addScript('files_external', $_['backends'][$mount['class']]['custom']); ?> <?php endif; ?> <?php endif; ?> </td> |