$p = new PEAR();
$contents = (array)$obj;
+ var_dump($content);
+
if(empty($this->id) && !empty($contents['template'])){
$this->get('name', $contents['template']);
}
if(empty($contents['subject'])){
$contents['subject'] = $this->subject;
}
- var_dump('here???');exit;
-
+
if (!empty($content['subject_replace'])) {
foreach ($content['mapping'] as $pattern => $replace) {
$content['subject'] = preg_replace($pattern,$replace,$content['subject']);