aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/filesystem.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-07 00:36:39 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-07 00:36:39 +0100
commit457dc270f5147863c00b55355542298ba4d41762 (patch)
tree7853ecbfa0f2aa1ce77ff0031b5d83a53ad529de /lib/files/filesystem.php
parent0ca5047da56c1b6d0614174b01d42bace85d53ee (diff)
downloadnextcloud-server-457dc270f5147863c00b55355542298ba4d41762.tar.gz
nextcloud-server-457dc270f5147863c00b55355542298ba4d41762.zip
Fix messed up mounts
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r--lib/files/filesystem.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index d9487bde806..b3ba62c3a49 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -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);
}
}