Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6959699
)
MDL-41196 phpmailer: fixed unit test detection
author
Sam Hemelryk
<sam@moodle.com>
Thu, 22 Aug 2013 02:46:26 +0000
(14:46 +1200)
committer
Sam Hemelryk
<sam@moodle.com>
Thu, 22 Aug 2013 02:46:26 +0000
(14:46 +1200)
lib/phpmailer/moodle_phpmailer.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/phpmailer/moodle_phpmailer.php
b/lib/phpmailer/moodle_phpmailer.php
index
a31d3c8
..
01cdadc
100644
(file)
--- a/
lib/phpmailer/moodle_phpmailer.php
+++ b/
lib/phpmailer/moodle_phpmailer.php
@@
-135,7
+135,7
@@
class moodle_phpmailer extends PHPMailer {
*/
protected function PostSend() {
// Now ask phpunit if it wants to catch this message.
- if (phpunit_util::is_redirecting_messages()) {
+ if (
PHPUNIT_TEST &&
phpunit_util::is_redirecting_messages()) {
$mail = new stdClass();
$mail->header = $this->MIMEHeader;
$mail->body = $this->MIMEBody;