X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=MessagePreview.php;h=f59cde177e0f2f376661919f83a9a373777494a8;hp=5fb5d6fac53f8ec7d82a496626f0130a7141419b;hb=refs%2Fheads%2Fwip_alan_T5884_add_photo_to_report;hpb=464dea00f821f7bffb83751371ba1ac3a8afc05d diff --git a/MessagePreview.php b/MessagePreview.php index 5fb5d6fa..f59cde17 100644 --- a/MessagePreview.php +++ b/MessagePreview.php @@ -18,7 +18,7 @@ class Pman_Core_MessagePreview extends Pman return true; } - function get() + function get($v, $opts=array()) { if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){ $this->jerr('Missing Options'); @@ -34,7 +34,7 @@ class Pman_Core_MessagePreview extends Pman } - function post() + function post($v) { if(empty($_REQUEST['_id']) || empty($_REQUEST['_table'])){ $this->jerr('Missing Options'); @@ -65,7 +65,6 @@ class Pman_Core_MessagePreview extends Pman $this->jok("SUCCESS"); - /* $mid = $_REQUEST['_id']; @@ -114,6 +113,8 @@ class Pman_Core_MessagePreview extends Pman $content = $x->{$method}($this, $this->authUser); + $content['bcc'] = array(); + $sent = $core_email->send($content); if(is_object($sent)){