Skip to content
Snippets Groups Projects
Unverified Commit 55d8c3db authored by Morris Jobke's avatar Morris Jobke
Browse files

Reduce indirection in AppManager


Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 3d0e0f23
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