Merge pull request #21443 from owncloud/fix-container-lookup
Lookup the App name instead of OCA
This commit is contained in:
commit
b6bc17d014
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue