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 {
|
} else {
|
||||||
$versionToLoad = array();
|
$versionToLoad = array();
|
||||||
foreach ($possibleApps as $possibleApp) {
|
foreach ($possibleApps as $possibleApp) {
|
||||||
$version = self::getAppVersionByPath($possibleApp['path']);
|
$version = self::getAppVersionByPath($possibleApp['path'] . '/' . $appId);
|
||||||
if (empty($versionToLoad) || version_compare($version, $versionToLoad['version'], '>')) {
|
if (empty($versionToLoad) || version_compare($version, $versionToLoad['version'], '>')) {
|
||||||
$versionToLoad = array(
|
$versionToLoad = array(
|
||||||
'dir' => $possibleApp,
|
'dir' => $possibleApp,
|
||||||
|
|
Loading…
Reference in New Issue