]> source.dussan.org Git - nextcloud-server.git/commitdiff
Lookup the App name instead of OCA
authorJoas Schilling <nickvergessen@owncloud.com>
Mon, 4 Jan 2016 13:47:49 +0000 (14:47 +0100)
committerJoas Schilling <nickvergessen@owncloud.com>
Mon, 4 Jan 2016 13:47:49 +0000 (14:47 +0100)
lib/private/servercontainer.php

index 856e3f9b4956d24ba0865988a6db375c564d4961..385700957a1dea6c874d430e7771667f7241df4d 100644 (file)
@@ -75,7 +75,7 @@ class ServerContainer extends SimpleContainer {
                // the apps container first.
                if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) {
                        $segments = explode('\\', $name);
-                       $appContainer = $this->getAppContainer(strtolower($segments[0]));
+                       $appContainer = $this->getAppContainer(strtolower($segments[1]));
                        try {
                                return $appContainer->query($name);
                        } catch (QueryException $e) {