[Pkg-owncloud-commits] [owncloud] 116/153: Add priority overriding comments

David Prévot taffit at moszumanska.debian.org
Tue May 27 03:05:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit da03ef25d99bcc756c69923e347521340487f798
Author: Robin McCorkell <rmccorkell at karoshi.org.uk>
Date:   Wed May 21 22:29:16 2014 +0100

    Add priority overriding comments
---
 apps/files_external/lib/config.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index d47a2b4..c69cac8 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -145,6 +145,7 @@ class OC_Mount_Config {
 					$options['priority'] = $backends[$options['class']]['priority'];
 				}
 
+				// Override if priority greater
 				if ( (!isset($mountPoints[$mountPoint]))
 					|| ($options['priority'] >= $mountPoints[$mountPoint]['priority']) ) {
 					$options['priority_type'] = self::MOUNT_TYPE_GLOBAL;
@@ -165,6 +166,7 @@ class OC_Mount_Config {
 					$options['priority'] = $backends[$options['class']]['priority'];
 				}
 
+				// Override if priority greater
 				if ( (!isset($mountPoints[$mountPoint]))
 					|| ($options['priority'] >= $mountPoints[$mountPoint]['priority']) ) {
 					$options['priority_type'] = self::MOUNT_TYPE_GLOBAL;
@@ -186,6 +188,7 @@ class OC_Mount_Config {
 							$options['priority'] = $backends[$options['class']]['priority'];
 						}
 
+						// Override if priority greater or if priority type different
 						if ( (!isset($mountPoints[$mountPoint]))
 							|| ($options['priority'] >= $mountPoints[$mountPoint]['priority'])
 							|| ($mountPoints[$mountPoint]['priority_type'] !== self::MOUNT_TYPE_GROUP) ) {
@@ -210,6 +213,7 @@ class OC_Mount_Config {
 							$options['priority'] = $backends[$options['class']]['priority'];
 						}
 
+						// Override if priority greater or if priority type different
 						if ( (!isset($mountPoints[$mountPoint]))
 							|| ($options['priority'] >= $mountPoints[$mountPoint]['priority'])
 							|| ($mountPoints[$mountPoint]['priority_type'] !== self::MOUNT_TYPE_USER) ) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list