Merge pull request #9436 from nextcloud/backport/9373/stable13
[stable13] Get correct version of an app
This commit is contained in:
commit
1aa149a615
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue