diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-07-18 11:33:58 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-07-18 11:33:58 +0200 |
commit | 55d8c3db3e9568ead29c507b421c0065dd90fa88 (patch) | |
tree | 61683a6fb828a7c14dcf63196444bf9703b66a54 | |
parent | 3d0e0f23530160419f182ac9e896dea6f7bc9f59 (diff) | |
download | nextcloud-server-55d8c3db3e9568ead29c507b421c0065dd90fa88.tar.gz nextcloud-server-55d8c3db3e9568ead29c507b421c0065dd90fa88.zip |
Reduce indirection in AppManager
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r-- | lib/private/App/AppManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |