projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Core_person_signup.php
[Pman.Core]
/
DataObjects
/
Core_person_signup.php
diff --git
a/DataObjects/Core_person_signup.php
b/DataObjects/Core_person_signup.php
index
4e989e4
..
417ea05
100644
(file)
--- a/
DataObjects/Core_person_signup.php
+++ b/
DataObjects/Core_person_signup.php
@@
-93,11
+93,14
@@
class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
// }
// }
// }
// }
- function sendVerification()
+ function sendVerification(
$roo
)
{
$content = array(
{
$content = array(
- 'template' => 'CORE_PERSON_SIGNUP_CONFIRM',
+ 'template' => 'CORE_PERSON_SIGNUP_VERIFICATION',
+ 'person' => $this,
+ 'serverName' => $_SERVER['SERVER_NAME'],
+ 'baseURL' => $roo->baseURL
);
$sent = DB_DataObject::factory('core_email')->send($content);
);
$sent = DB_DataObject::factory('core_email')->send($content);
@@
-108,5
+111,13
@@
class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
return false;
}
return false;
}
+
+ function getEmailFrom()
+ {
+ if (empty($this->name)) {
+ return $this->email;
+ }
+ return '"' . addslashes($this->name) . '" <' . $this->email . '>';
+ }
}
}