Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
051bcf92
Commit
051bcf92
authored
Feb 02, 2010
by
Richard Mansfield
Browse files
Ensure usertoname gets initialised in email_user (bug #515497)
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
fc489d10
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/mahara.php
View file @
051bcf92
...
...
@@ -433,6 +433,7 @@ $string['noinstitutionsetpassemailmessagehtml'] = '<p>Dear %s,</p>
<p><a href="%sforgotpass.php?key=%s">%sforgotpass.php?key=%s</a></p>'
;
$string
[
'debugemail'
]
=
'NOTICE: This e-mail was intended for %s <%s> but has been sent to you as per the "sendallemailto" configuration setting.'
;
$string
[
'divertingemailto'
]
=
'Diverting email to %s'
;
// Expiry times
...
...
htdocs/lib/user.php
View file @
051bcf92
...
...
@@ -389,6 +389,7 @@ function email_user($userto, $userfrom, $subject, $messagetext, $messagehtml='',
if
(
$messagehtml
)
{
$messagehtml
=
'<p>'
.
hsc
(
$notice
)
.
'</p>'
.
$messagehtml
;
}
$usertoname
=
display_name
(
$userto
,
$userto
,
true
)
.
' ('
.
get_string
(
'divertingemailto'
,
'mahara'
,
$to
)
.
')'
;
}
else
{
$usertoname
=
display_name
(
$userto
,
$userto
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment