Fix messed up mounts

This commit is contained in:
Robin Appelman 2013-01-07 00:36:39 +01:00
parent 0ca5047da5
commit 457dc270f5

View file

@ -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);
}
}