mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Removing redundant class attribute - debug mode should always be enabled by setting EmailComponent:: to 'debug'.
This commit is contained in:
parent
2c5eb204c9
commit
c3aa0de244
1 changed files with 1 additions and 11 deletions
|
@ -246,14 +246,6 @@ class EmailComponent extends Object{
|
||||||
*/
|
*/
|
||||||
var $smtpError = null;
|
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
|
* Temporary store of message header lines
|
||||||
*
|
*
|
||||||
|
@ -351,9 +343,7 @@ class EmailComponent extends Object{
|
||||||
$this->__message[] = '';
|
$this->__message[] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->_debug) {
|
|
||||||
return $this->_debug();
|
|
||||||
}
|
|
||||||
$_method = '_' . $this->delivery;
|
$_method = '_' . $this->delivery;
|
||||||
$sent = $this->$_method();
|
$sent = $this->$_method();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue