aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Common.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-06-01 14:29:31 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-10-20 20:27:44 +0200
commit246bb9f33d23340d821384b25097066f65c5d483 (patch)
tree1f5b8692db952c537e54f1816eff9ec9949560a7 /lib/private/Files/Storage/Common.php
parent98c846456417989d995fe868731e2b1bd77f0f37 (diff)
downloadnextcloud-server-246bb9f33d23340d821384b25097066f65c5d483.tar.gz
nextcloud-server-246bb9f33d23340d821384b25097066f65c5d483.zip
Move OC\Files\Storage\Shared to the right namespace
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r--lib/private/Files/Storage/Common.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 63d3c004fd2..c975791295d 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -466,6 +466,10 @@ abstract class Common implements Storage, ILockingStorage {
* @return bool
*/
public function instanceOfStorage($class) {
+ if (ltrim($class, '\\') === 'OC\Files\Storage\Shared') {
+ // FIXME Temporary fix to keep existing checks working
+ $class = '\OCA\Files_Sharing\SharedStorage';
+ }
return is_a($this, $class);
}