Merge pull request #16451 from nextcloud/tech-debt/noid/reduce-indirection
Reduce indirection in AppManager
This commit is contained in:
commit
a65c00472a
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ class AppManager implements IAppManager {
|
|||
|
||||
public function getAppVersion(string $appId, bool $useCache = true): string {
|
||||
if(!$useCache || !isset($this->appVersions[$appId])) {
|
||||
$appInfo = \OC::$server->getAppManager()->getAppInfo($appId);
|
||||
$appInfo = $this->getAppInfo($appId);
|
||||
$this->appVersions[$appId] = ($appInfo !== null && isset($appInfo['version'])) ? $appInfo['version'] : '0';
|
||||
}
|
||||
return $this->appVersions[$appId];
|
||||
|
|
Loading…
Reference in a new issue