Commit adf3f027 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

String not using get_string

parent 7066476a
......@@ -89,9 +89,10 @@ function contactus_submit($values) {
json_reply('local', get_string('nositecontactaddress'));
}
// email_user requires firstname, lastname to be set, so put something in
$to = new StdClass;
$to->firstname = get_config('sitename');
$to->lastname = 'contact email';
$to->lastname = get_string('contactaddress');
$to->email = $contactemail;
$fromnames = explode(' ',$values['name']);
......@@ -99,7 +100,6 @@ function contactus_submit($values) {
json_reply('local', get_string('nosendernamefound'));
}
$from = new StdClass;
//$from->preferredname = $values['name'];
$from->firstname = $fromnames[0];
$from->lastname = count($fromnames) < 2 ? $fromnames[0] : implode(' ',array_slice($fromnames,1));
$from->email = $values['email'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment