|
@@ 111-114 (lines=4) @@
|
| 108 |
|
|
| 109 |
|
// instantiate object store implementation |
| 110 |
|
$name = $config['class']; |
| 111 |
|
if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) { |
| 112 |
|
$segments = explode('\\', $name); |
| 113 |
|
OC_App::loadApp(strtolower($segments[1])); |
| 114 |
|
} |
| 115 |
|
$config['arguments']['objectstore'] = new $config['class']($config['arguments']); |
| 116 |
|
// mount with plain / root object store implementation |
| 117 |
|
$config['class'] = '\OC\Files\ObjectStore\ObjectStoreStorage'; |
|
@@ 145-148 (lines=4) @@
|
| 142 |
|
|
| 143 |
|
// instantiate object store implementation |
| 144 |
|
$name = $config['class']; |
| 145 |
|
if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) { |
| 146 |
|
$segments = explode('\\', $name); |
| 147 |
|
OC_App::loadApp(strtolower($segments[1])); |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
if (!isset($config['arguments']['bucket'])) { |
| 151 |
|
$config['arguments']['bucket'] = ''; |