}
$params['notify_flags'] = defaults($params, 'notify_flags', $user['notify-flags']);
- $params['language'] = defaults($params, 'language', $user['language']);
- $params['to_name'] = defaults($params, 'to_name', $user['username']);
- $params['to_email'] = defaults($params, 'to_email', $user['email']);
+ $params['language'] = defaults($params, 'language' , $user['language']);
+ $params['to_name'] = defaults($params, 'to_name' , $user['username']);
+ $params['to_email'] = defaults($params, 'to_email' , $user['email']);
// from here on everything is in the recipients language
L10n::pushLang($params['language']);
$body = sprintf($body, $error_message);
notification([
- 'type' => SYSTEM_EMAIL,
+ 'uid' => $admin['uid'],
+ 'type' => SYSTEM_EMAIL,
'to_email' => $admin['email'],
'preamble' => $preamble,
- 'body' => $body,
+ 'body' => $body,
'language' => $lang]
);
}