Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove reference magic
  • Loading branch information
butonic committed Aug 17, 2016
commit c687c89354fc17730433f77b8f469bca659263a2
8 changes: 4 additions & 4 deletions apps/files_external/lib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ private static function prepareMountPointEntry(StorageConfig $storage, $isPerson
*/
public static function setUserVars($user, $input) {
if (is_array($input)) {
foreach ($input as &$value) {
foreach ($input as $key => $value) {
if (is_string($value)) {
$value = str_replace('$user', $user, $value);
$input[$key] = str_replace('$user', $user, $value);
}
}
} else {
Expand All @@ -219,8 +219,8 @@ public static function getBackendStatus($class, $options, $isPersonal, $testOnly
if (self::$skipTest) {
return StorageNotAvailableException::STATUS_SUCCESS;
}
foreach ($options as &$option) {
$option = self::setUserVars(OCP\User::getUser(), $option);
foreach ($options as $key => $option) {
$option[$key] = self::setUserVars(OCP\User::getUser(), $option);
}
if (class_exists($class)) {
try {
Expand Down