projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hide popup message if failure is handled - not sure what knock on effect this may...
[Pman.Core]
/
MessagePreview.php
diff --git
a/MessagePreview.php
b/MessagePreview.php
index
7715322
..
e12a031
100644
(file)
--- a/
MessagePreview.php
+++ b/
MessagePreview.php
@@
-18,8
+18,9
@@
class Pman_Core_MessagePreview extends Pman
return true;
}
return true;
}
- function get()
+ function get(
$v, $opts=array()
)
{
{
+
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
}
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
}
@@
-34,7
+35,7
@@
class Pman_Core_MessagePreview extends Pman
}
}
- function post()
+ function post(
$v
)
{
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
{
if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){
$this->jerr('Missing Options');
@@
-59,15
+60,12
@@
class Pman_Core_MessagePreview extends Pman
$sent = $cn->sendManual();
$sent = $cn->sendManual();
- print_R($sent);exit;
-
- if($sent === true){
- $this->jerr($sent);
+ if(get_class($sent) != 'Pman_Core_NotifySend_Exception_Success'){
+ $this->jerr($sent->getMessage());
}
$this->jok("SUCCESS");
}
$this->jok("SUCCESS");
-
/*
$mid = $_REQUEST['_id'];
/*
$mid = $_REQUEST['_id'];
@@
-116,6
+114,8
@@
class Pman_Core_MessagePreview extends Pman
$content = $x->{$method}($this, $this->authUser);
$content = $x->{$method}($this, $this->authUser);
+ $content['bcc'] = array();
+
$sent = $core_email->send($content);
if(is_object($sent)){
$sent = $core_email->send($content);
if(is_object($sent)){