X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_person_signup.php;h=a59f67d09c430106d492c9741c341a68911d7ed2;hp=c32a79eb151b342602bbe23fb4128fbe08d56b77;hb=HEAD;hpb=2000761d7f799df04644d6ed31dd1f16a3fbb660 diff --git a/DataObjects/Core_person_signup.php b/DataObjects/Core_person_signup.php index c32a79eb..a59f67d0 100644 --- a/DataObjects/Core_person_signup.php +++ b/DataObjects/Core_person_signup.php @@ -3,7 +3,7 @@ /** * Table Definition for Person */ -require_once 'DB/DataObject.php'; +class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php'; class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject { @@ -40,7 +40,6 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject $old = clone($this); // this shold not really happen... if($target->get('email', $this->email)){ - return false; } @@ -61,14 +60,13 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject function sendVerification($template, $roo) { - $content = array( 'template' => $template, 'person' => $this, 'serverName' => $_SERVER['SERVER_NAME'], 'baseURL' => $roo->baseURL ); - + $sent = DB_DataObject::factory('core_email')->send($content); if(!is_object($sent)){