]> source.dussan.org Git - nextcloud-server.git/commitdiff
Preserve priority if already set
authorRobin McCorkell <rmccorkell@karoshi.org.uk>
Thu, 3 Apr 2014 13:57:35 +0000 (14:57 +0100)
committerRobin McCorkell <rmccorkell@karoshi.org.uk>
Wed, 21 May 2014 21:17:21 +0000 (22:17 +0100)
apps/files_external/lib/config.php

index 5e5340e910f2ed0adf56b20e96f7597f91587a77..223b91788cbb053ed49eda94f06a4528ff559182 100755 (executable)
@@ -756,6 +756,11 @@ class OC_Mount_Config {
                $applicable = key($mountPoint);
                if (isset($data[$mountType])) {
                        if (isset($data[$mountType][$applicable])) {
+                               if (isset($mountPoints[$mountType][$applicable][$mountPoint])
+                                       && isset($mountPoints[$mountType][$applicable][$mountPoint]['priority'])) {
+                                       $mount[$applicable][$mountPoint]['priority']
+                                               = $mountPoints[$mountType][$applicable][$mountPoint]['priority'];
+                               }
                                $data[$mountType][$applicable]
                                        = array_merge($data[$mountType][$applicable], $mountPoint[$applicable]);
                        } else {