diff options
Diffstat (limited to 'lib/private/notification/manager.php')
-rw-r--r-- | lib/private/notification/manager.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php index 93062ae14dc..0b3b68a4065 100644 --- a/lib/private/notification/manager.php +++ b/lib/private/notification/manager.php @@ -128,16 +128,17 @@ class Manager implements IManager { /** * @param INotification $notification + * @param string $languageCode The code of the language that should be used to prepare the notification * @return INotification * @throws \InvalidArgumentException When the notification was not prepared by a notifier * @since 8.2.0 */ - public function prepare(INotification $notification) { + public function prepare(INotification $notification, $languageCode) { $notifiers = $this->getNotifiers(); foreach ($notifiers as $notifier) { try { - $notifier->prepare($notification); + $notifier->prepare($notification, $languageCode); } catch (\InvalidArgumentException $e) {} } |