diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index cb1a7b111c61e..3347e4a6ec2d2 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -255,11 +255,13 @@ public static function getInstallPath(): string|null { /** - * search for an app in all app-directories + * Find the apps root for an app id. + * + * If multiple copies are found, the apps root the latest version is returned. * * @param string $appId * @param bool $ignoreCache ignore cache and rebuild it - * @return false|string + * @return false|array{path: string, url: string} the apps root shape */ public static function findAppInDirectories(string $appId, bool $ignoreCache = false) { $sanitizedAppId = self::cleanAppId($appId);