projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c0a9155
)
Import/Core_email.php
author
Alan Knowles
<alan@roojs.com>
Tue, 6 Oct 2015 06:05:35 +0000
(14:05 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 6 Oct 2015 06:05:35 +0000
(14:05 +0800)
Import/Core_email.php
patch
|
blob
|
history
diff --git
a/Import/Core_email.php
b/Import/Core_email.php
index
cd28bc1
..
a716f3d
100644
(file)
--- a/
Import/Core_email.php
+++ b/
Import/Core_email.php
@@
-94,18
+94,11
@@
class Pman_Core_Import_Core_email extends Pman
$c->setFrom(array(
$c->setFrom(array(
- 'from_name' => $from_name,
- 'from_email' => $from_email,
- 'subject' => $parts[1]['Subject'],
- 'name' => $template_name,
'bodytext' => $parts[2],
'bodytext' => $parts[2],
- 'updated_dt' => date('Y-m-d H:i:s'),
- 'created_dt' => date('Y-m-d H:i:s'),
+
));
if ($c->id) {
));
if ($c->id) {
-
-
-
+
$c->update();
} else {
$c->update();
} else {
@@
-114,7
+107,7
@@
class Pman_Core_Import_Core_email extends Pman
'from_email' => $from_email,
'subject' => $parts[1]['Subject'],
'name' => $template_name,
'from_email' => $from_email,
'subject' => $parts[1]['Subject'],
'name' => $template_name,
- 'bodytext' => $parts[2],
+
'updated_dt' => date('Y-m-d H:i:s'),
'created_dt' => date('Y-m-d H:i:s'),
));
'updated_dt' => date('Y-m-d H:i:s'),
'created_dt' => date('Y-m-d H:i:s'),
));