Also cache the namespace from appinfo
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8b94fbe014
commit
3f86f1276f
|
@ -61,11 +61,12 @@ class App {
|
|||
|
||||
$appInfo = \OC_App::getAppInfo($appId);
|
||||
if (isset($appInfo['namespace'])) {
|
||||
return $topNamespace . trim($appInfo['namespace']);
|
||||
self::$nameSpaceCache[$appId] = trim($appInfo['namespace']);
|
||||
} else {
|
||||
// if the tag is not found, fall back to uppercasing the first letter
|
||||
self::$nameSpaceCache[$appId] = ucfirst($appId);
|
||||
}
|
||||
|
||||
// if the tag is not found, fall back to uppercasing the first letter
|
||||
self::$nameSpaceCache[$appId] = ucfirst($appId);
|
||||
return $topNamespace . self::$nameSpaceCache[$appId];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue