Merge pull request #9436 from nextcloud/backport/9373/stable13

[stable13] Get correct version of an app
This commit is contained in:
Morris Jobke 2018-05-14 13:33:14 +02:00 committed by GitHub
commit 1aa149a615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ class OC_App {
} else {
$versionToLoad = array();
foreach ($possibleApps as $possibleApp) {
$version = self::getAppVersionByPath($possibleApp['path']);
$version = self::getAppVersionByPath($possibleApp['path'] . '/' . $appId);
if (empty($versionToLoad) || version_compare($version, $versionToLoad['version'], '>')) {
$versionToLoad = array(
'dir' => $possibleApp,