diff options
Diffstat (limited to 'apps/files_external/lib/config.php')
-rw-r--r-- | apps/files_external/lib/config.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 103d98cd1bf..40e9a75790f 100644 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -156,8 +156,6 @@ class OC_Mount_Config { public static function getAbsoluteMountPoints($user) { $mountPoints = array(); - $datadir = \OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data"); - $backends = self::getBackends(); // Load system mount points @@ -287,12 +285,21 @@ class OC_Mount_Config { /** * fill in the correct values for $user * - * @param string $user - * @param string $input + * @param string $user user value + * @param string|array $input * @return string */ private static function setUserVars($user, $input) { - return str_replace('$user', $user, $input); + if (is_array($input)) { + foreach ($input as &$value) { + if (is_string($value)) { + $value = str_replace('$user', $user, $value); + } + } + } else { + $input = str_replace('$user', $user, $input); + } + return $input; } |