Fix messed up mounts
This commit is contained in:
parent
0ca5047da5
commit
457dc270f5
1 changed files with 4 additions and 4 deletions
|
@ -364,14 +364,14 @@ class Filesystem {
|
|||
if (strlen($mountpoint) > 1) {
|
||||
$mountpoint .= '/';
|
||||
}
|
||||
// Update old classes to new namespace
|
||||
if (strpos($class, 'OC_Filestorage_') !== false) {
|
||||
$class = '\OC\Files\Storage\\'.substr($class, 15);
|
||||
}
|
||||
if ($class instanceof \OC\Files\Storage\Storage) {
|
||||
self::$mounts[$mountpoint] = array('class' => get_class($class), 'arguments' => $arguments);
|
||||
self::$storages[$mountpoint] = $class;
|
||||
} else {
|
||||
// Update old classes to new namespace
|
||||
if (strpos($class, 'OC_Filestorage_') !== false) {
|
||||
$class = '\OC\Files\Storage\\'.substr($class, 15);
|
||||
}
|
||||
self::$mounts[$mountpoint] = array('class' => $class, 'arguments' => $arguments);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue