Skip to content
Snippets Groups Projects
Commit 2cf4e144 authored by Joas Schilling's avatar Joas Schilling
Browse files

Lookup the App name instead of OCA

parent ebc52300
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ class ServerContainer extends SimpleContainer { ...@@ -75,7 +75,7 @@ class ServerContainer extends SimpleContainer {
// the apps container first. // the apps container first.
if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) { if (strpos($name, 'OCA\\') === 0 && substr_count($name, '\\') >= 2) {
$segments = explode('\\', $name); $segments = explode('\\', $name);
$appContainer = $this->getAppContainer(strtolower($segments[0])); $appContainer = $this->getAppContainer(strtolower($segments[1]));
try { try {
return $appContainer->query($name); return $appContainer->query($name);
} catch (QueryException $e) { } catch (QueryException $e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment