Fix notices in include/enotify
This commit is contained in:
parent
0de1351a09
commit
481b0ac138
2 changed files with 6 additions and 5 deletions
|
@ -42,9 +42,9 @@ function notification($params)
|
||||||
}
|
}
|
||||||
|
|
||||||
$params['notify_flags'] = defaults($params, 'notify_flags', $user['notify-flags']);
|
$params['notify_flags'] = defaults($params, 'notify_flags', $user['notify-flags']);
|
||||||
$params['language'] = defaults($params, 'language', $user['language']);
|
$params['language'] = defaults($params, 'language' , $user['language']);
|
||||||
$params['to_name'] = defaults($params, 'to_name', $user['username']);
|
$params['to_name'] = defaults($params, 'to_name' , $user['username']);
|
||||||
$params['to_email'] = defaults($params, 'to_email', $user['email']);
|
$params['to_email'] = defaults($params, 'to_email' , $user['email']);
|
||||||
|
|
||||||
// from here on everything is in the recipients language
|
// from here on everything is in the recipients language
|
||||||
L10n::pushLang($params['language']);
|
L10n::pushLang($params['language']);
|
||||||
|
|
|
@ -83,6 +83,7 @@ class DBStructure
|
||||||
$body = sprintf($body, $error_message);
|
$body = sprintf($body, $error_message);
|
||||||
|
|
||||||
notification([
|
notification([
|
||||||
|
'uid' => $admin['uid'],
|
||||||
'type' => SYSTEM_EMAIL,
|
'type' => SYSTEM_EMAIL,
|
||||||
'to_email' => $admin['email'],
|
'to_email' => $admin['email'],
|
||||||
'preamble' => $preamble,
|
'preamble' => $preamble,
|
||||||
|
|
Loading…
Reference in a new issue