diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-03 12:07:04 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-03 12:07:04 -0500 |
commit | 38876fc98a11a917e68780357d7f4b5a146ba89a (patch) | |
tree | 9bbf1f75462fb104d3dbb3e456dc8be4c1427e33 /lib/files | |
parent | f144be8857e3356495acefca787637b5672f73ef (diff) | |
download | nextcloud-server-38876fc98a11a917e68780357d7f4b5a146ba89a.tar.gz nextcloud-server-38876fc98a11a917e68780357d7f4b5a146ba89a.zip |
Update old storage classes names to the new namespace during mounting
Diffstat (limited to 'lib/files')
-rw-r--r-- | lib/files/filesystem.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 8183b8ff99c..b9fd6a03762 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -364,7 +364,10 @@ 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, strlen($class) - 15); + } if ($class instanceof \OC\Files\Storage\Storage) { self::$mounts[$mountpoint] = array('class' => get_class($class), 'arguments' => $arguments); self::$storages[$mountpoint] = $class; |