diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index 7931eecc50..70f1b16e3c 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -464,7 +464,7 @@ class OC_App { } else { $versionToLoad = []; 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,