projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #6436 - email test support via notify code
[Pman.Core]
/
DataObjects
/
Core_notify.php
diff --git
a/DataObjects/Core_notify.php
b/DataObjects/Core_notify.php
index
dbf012b
..
6cc632a
100644
(file)
--- a/
DataObjects/Core_notify.php
+++ b/
DataObjects/Core_notify.php
@@
-1,7
+1,7
@@
<?php
/**
*
<?php
/**
*
- * Table i
s
designed to be used with a mailer to notify or issue
+ * Table i
end
designed to be used with a mailer to notify or issue
* emails (or maybe others later??)
*
*
* emails (or maybe others later??)
*
*
@@
-316,13
+316,18
@@
class Pman_Core_DataObjects_Core_notify extends DB_DataObject
}
}
- function sendManual()
+ function sendManual(
$debug=false
)
{
require_once 'Pman/Core/NotifySend.php';
$send = new Pman_Core_NotifySend();
$send->error_handler = 'exception';
{
require_once 'Pman/Core/NotifySend.php';
$send = new Pman_Core_NotifySend();
$send->error_handler = 'exception';
+ if ($debug) {
+ $send->get($this->id, array());
+ return true;
+ }
+
try {
$send->get($this->id, array());
} catch (Exception $e) {
try {
$send->get($this->id, array());
} catch (Exception $e) {