From 18672675133a8164ab193ad08adc36751a734c77 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 4 Feb 2020 21:26:03 +0100 Subject: [PATCH] Add user array --- include/enotify.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/enotify.php b/include/enotify.php index 9016249a5b..18f5dec889 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -505,7 +505,10 @@ function notification($params) ->newNotifyMail() ->addHeaders($datarray['headers']) ->withRecipient($params['to_email']) - ->forUser($datarray['uid']) + ->forUser([ + 'uid' => $datarray['uid'], + 'language' => $params['language'], + ]) ->withNotification($datarray['subject'], $datarray['preamble'], $datarray['title'], $datarray['body']) ->withSiteLink($datarray['tsitelink'], $datarray['hsitelink']) ->withItemLink($datarray['itemlink']);