summaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-09-30 09:08:17 +0200
committerJoas Schilling <coding@schilljs.com>2021-09-30 09:08:17 +0200
commit37f40cdd468a2826f6269bacc81ff74d8c606d23 (patch)
tree12a7f4a1ca8dcdd83757c54addb3be914255b7ed /lib/private/Installer.php
parent5a469f54ab6877b690d585517186bb5fcf40546b (diff)
downloadnextcloud-server-37f40cdd468a2826f6269bacc81ff74d8c606d23.tar.gz
nextcloud-server-37f40cdd468a2826f6269bacc81ff74d8c606d23.zip
Fix translated app details
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r--lib/private/Installer.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 19e70aad147..f3af74167d1 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -113,9 +113,8 @@ class Installer {
throw new \Exception('The appinfo/database.xml file is not longer supported. Used in ' . $appId);
}
- $info = OC_App::getAppInfo($basedir.'/appinfo/info.xml', true);
-
$l = \OC::$server->getL10N('core');
+ $info = OC_App::getAppInfo($basedir.'/appinfo/info.xml', true, $l->getLanguageCode());
if (!is_array($info)) {
throw new \Exception(
@@ -163,8 +162,7 @@ class Installer {
//run appinfo/install.php
self::includeAppScript($basedir . '/appinfo/install.php');
- $appData = OC_App::getAppInfo($appId);
- OC_App::executeRepairSteps($appId, $appData['repair-steps']['install']);
+ OC_App::executeRepairSteps($appId, $info['repair-steps']['install']);
//set the installed version
\OC::$server->getConfig()->setAppValue($info['id'], 'installed_version', OC_App::getAppVersion($info['id'], false));