mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Also cache the namespace from appinfo
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8b94fbe014
commit
3f86f1276f
1 changed files with 4 additions and 3 deletions
|
|
@ -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 a new issue