diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-30 09:08:17 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-09-30 09:08:17 +0200 |
commit | 37f40cdd468a2826f6269bacc81ff74d8c606d23 (patch) | |
tree | 12a7f4a1ca8dcdd83757c54addb3be914255b7ed /apps/updatenotification/lib/Notification | |
parent | 5a469f54ab6877b690d585517186bb5fcf40546b (diff) | |
download | nextcloud-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.php | 6 |
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); } } |