Change occurances of user->profileField to user->get

This commit is contained in:
Colin Kuskie 2010-11-18 16:12:03 -08:00
parent ae48e7517a
commit 59c03b50e7
41 changed files with 86 additions and 86 deletions

View file

@ -741,7 +741,7 @@ sub view {
$mailForm->email(
-extras =>'class="content"',
-name =>"from",
-value =>$session->user->profileField("email"),
-value =>$session->user->get("email"),
-label =>$i18n->get('your email label'),
);
$mailForm->selectBox(
@ -1020,7 +1020,7 @@ sub www_sendEmail {
if ($form->process("body") ne "") {
my $user = WebGUI::User->new($self->session, $self->get('maintainerId'));
my $mail = WebGUI::Mail::Send->create($self->session,{
to =>$user->profileField("email"),
to =>$user->get("email"),
subject =>$self->get('productName')." - ".$form->process("subject"),
from=>$form->process("from")
});