Skip to content
Permalink
Browse files

Removing redundant class attribute - debug mode should always be enab…

…led by setting EmailComponent:: to 'debug'.
  • Loading branch information...
jperras committed Aug 9, 2009
1 parent 2c5eb20 commit c3aa0de2440d9839bfd79d818c8e10f74b7ba9e3
Showing with 1 addition and 11 deletions.
  1. +1 −11 cake/libs/controller/components/email.php
@@ -246,14 +246,6 @@ class EmailComponent extends Object{
*/
var $smtpError = null;
/**
* If set to true, the mail method will be auto-set to 'debug'
*
* @var string
* @access protected
*/
var $_debug = false;
/**
* Temporary store of message header lines
*
@@ -351,9 +343,7 @@ function send($content = null, $template = null, $layout = null) {
$this->__message[] = '';
}
if ($this->_debug) {
return $this->_debug();
}
$_method = '_' . $this->delivery;
$sent = $this->$_method();

0 comments on commit c3aa0de

Please sign in to comment.
You can’t perform that action at this time.