Skip to content
Snippets Groups Projects
Commit 457dc270 authored by Robin Appelman's avatar Robin Appelman
Browse files

Fix messed up mounts

parent 0ca5047d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment