Commit 7b75ec8d authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Get rid of preferred name in contact us

parent fecbc22f
......@@ -104,7 +104,7 @@ function contactus_submit($values) {
json_reply('local', get_string('nosendernamefound'));
}
$from = new StdClass;
$from->preferredname = $values['name'];
//$from->preferredname = $values['name'];
$from->firstname = $fromnames[0];
$from->lastname = count($fromnames) < 2 ? $fromnames[0] : implode(' ',array_slice($fromnames,1));
$from->email = $values['email'];
......
Supports Markdown
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