]> source.dussan.org Git - nextcloud-server.git/commitdiff
We need to ensure that the app holding the objectstore implementation is loaded ... 2113/head
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 7 Oct 2016 10:41:37 +0000 (12:41 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 14 Nov 2016 14:00:45 +0000 (15:00 +0100)
lib/private/legacy/util.php

index 5cd92eaa4157d424f5b8a243566219d2fd9b863c..ecc8f0537041f47832b4e5888ac42c641fcff5f0 100644 (file)
@@ -98,6 +98,11 @@ class OC_Util {
                }
 
                // instantiate object store implementation
+               $name = $config['class'];
+               if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) {
+                       $segments = explode('\\', $name);
+                       OC_App::loadApp(strtolower($segments[1]));
+               }
                $config['arguments']['objectstore'] = new $config['class']($config['arguments']);
                // mount with plain / root object store implementation
                $config['class'] = '\OC\Files\ObjectStore\ObjectStoreStorage';