summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/Notification
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 /apps/updatenotification/lib/Notification
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 'apps/updatenotification/lib/Notification')
-rw-r--r--apps/updatenotification/lib/Notification/Notifier.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/updatenotification/lib/Notification/Notifier.php b/apps/updatenotification/lib/Notification/Notifier.php
index 787a43b2db8..bfbcc203480 100644
--- a/apps/updatenotification/lib/Notification/Notifier.php
+++ b/apps/updatenotification/lib/Notification/Notifier.php
@@ -134,7 +134,7 @@ class Notifier implements INotifier {
$notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index', ['section' => 'overview']) . '#version');
}
} else {
- $appInfo = $this->getAppInfo($notification->getObjectType());
+ $appInfo = $this->getAppInfo($notification->getObjectType(), $languageCode);
$appName = ($appInfo === null) ? $notification->getObjectType() : $appInfo['name'];
if (isset($this->appVersions[$notification->getObjectType()])) {
@@ -194,7 +194,7 @@ class Notifier implements INotifier {
return \OC_App::getAppVersions();
}
- protected function getAppInfo($appId) {
- return \OC_App::getAppInfo($appId);
+ protected function getAppInfo($appId, $languageCode) {
+ return \OC_App::getAppInfo($appId, false, $languageCode);
}
}