Commit 2cf4e144 authored by Joas Schilling's avatar Joas Schilling
Browse files

Lookup the App name instead of OCA

parent ebc52300
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment