projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5624340
)
MessagePreview.php
author
Edward
<edward@roojs.com>
Fri, 21 Feb 2014 11:12:05 +0000
(19:12 +0800)
committer
Edward
<edward@roojs.com>
Fri, 21 Feb 2014 11:12:05 +0000
(19:12 +0800)
MessagePreview.php
patch
|
blob
|
history
diff --git
a/MessagePreview.php
b/MessagePreview.php
index
8ab7932
..
cbe9c5e
100644
(file)
--- a/
MessagePreview.php
+++ b/
MessagePreview.php
@@
-40,18
+40,12
@@
class Pman_Core_MessagePreview extends Pman
$this->jerr('Missing Options');
}
$this->jerr('Missing Options');
}
- $mid = $_REQUEST['_id'];
-
- $mlq = DB_DataObject::factory($_REQUEST['_table']);
-
- $mlq->get($_REQUEST['_id']);
-
$content = array(
'template' => $mlq->name,
'person' => $this->authUser
);
$content = array(
'template' => $mlq->name,
'person' => $this->authUser
);
- $sent = DB_DataObject::factory(
'crm_mailing_list_message'
)->send($content);
+ $sent = DB_DataObject::factory(
$_REQUEST['_table']
)->send($content);
if(!is_object($sent)){
$this->jok('SUCCESS');
if(!is_object($sent)){
$this->jok('SUCCESS');