diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-05-31 21:15:51 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-01 11:31:27 +0200 |
commit | e76d525a43c639d9c32e66dc7bd93fc8cc3bb4e3 (patch) | |
tree | d993825893f4c435477018c5a13980c0bf87b0ab /lib/private/legacy/OC_App.php | |
parent | cf6e2fa1b79c63581aa145d0a7c7ee2051fbbde2 (diff) | |
download | nextcloud-server-e76d525a43c639d9c32e66dc7bd93fc8cc3bb4e3.tar.gz nextcloud-server-e76d525a43c639d9c32e66dc7bd93fc8cc3bb4e3.zip |
chore: Drop \OC_App::getAppInfo
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/legacy/OC_App.php')
-rw-r--r-- | lib/private/legacy/OC_App.php | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index 505bd93e0b6..ef416f2342f 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -394,21 +394,6 @@ class OC_App { return isset($appData['version']) ? $appData['version'] : ''; } - - /** - * Read all app metadata from the info.xml file - * - * @param string $appId id of the app or the path of the info.xml file - * @param bool $path - * @param string $lang - * @return array|null - * @note all data is read from info.xml, not just pre-defined fields - * @deprecated 14.0.0 use \OC::$server->getAppManager()->getAppInfo() - */ - public static function getAppInfo(string $appId, bool $path = false, string $lang = null) { - return \OC::$server->getAppManager()->getAppInfo($appId, $path, $lang); - } - /** * Returns the navigation * @@ -609,7 +594,7 @@ class OC_App { foreach ($installedApps as $app) { if (array_search($app, $blacklist) === false) { - $info = OC_App::getAppInfo($app, false, $langCode); + $info = $appManager->getAppInfo($app, false, $langCode); if (!is_array($info)) { \OCP\Util::writeLog('core', 'Could not read app info file for app "' . $app . '"', ILogger::ERROR); continue; @@ -801,7 +786,7 @@ class OC_App { \OC::$server->getAppManager()->clearAppsCache(); $l = \OC::$server->getL10N('core'); - $appData = self::getAppInfo($appId, false, $l->getLanguageCode()); + $appData = \OCP\Server::get(\OCP\App\IAppManager::class)->getAppInfo($appId, false, $l->getLanguageCode()); $ignoreMaxApps = \OC::$server->getConfig()->getSystemValue('app_install_overwrite', []); $ignoreMax = in_array($appId, $ignoreMaxApps, true); |