Skip to content
Snippets Groups Projects
Unverified Commit a65c0047 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #16451 from nextcloud/tech-debt/noid/reduce-indirection

Reduce indirection in AppManager
parents 3d0e0f23 55d8c3db
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
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