diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-01 10:20:54 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-09-08 09:01:01 +0200 |
commit | f16c5a38a85270e2230d78ab355774238a325f5d (patch) | |
tree | f3d376ed4c285c3a2d8005ac2090633516a32163 /lib/private | |
parent | 5437aeeaa2ad2445c0ea9668d0afffee46a3ba68 (diff) | |
download | nextcloud-server-f16c5a38a85270e2230d78ab355774238a325f5d.tar.gz nextcloud-server-f16c5a38a85270e2230d78ab355774238a325f5d.zip |
Add language to the preparation method
Diffstat (limited to 'lib/private')
-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) {} } |