From 55d8c3db3e9568ead29c507b421c0065dd90fa88 Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Thu, 18 Jul 2019 11:33:58 +0200
Subject: Reduce indirection in AppManager

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
---
 lib/private/App/AppManager.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib/private/App')

diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php
index 17addc86c9d..db286d7ad7d 100644
--- a/lib/private/App/AppManager.php
+++ b/lib/private/App/AppManager.php
@@ -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];
-- 
cgit v1.2.3