mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Changed the classname of email config.
This commit is contained in:
parent
1e491b0bbe
commit
42ee001d71
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
||||||
* You can specify multiple configurations for production, development and testing.
|
* You can specify multiple configurations for production, development and testing.
|
||||||
*
|
*
|
||||||
* transport => The name of a supported transport; valid options are as follows:
|
* transport => The name of a supported transport; valid options are as follows:
|
||||||
* mail - MySQL 4 & 5,
|
* mail - Send using PHP mail function
|
||||||
* smtp - Send using SMTP
|
* smtp - Send using SMTP
|
||||||
*
|
*
|
||||||
* You can add custom database transports (or override existing transports) by adding the
|
* You can add custom database transports (or override existing transports) by adding the
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
* The origin email. See CakeEmail::to() about the valid values
|
* The origin email. See CakeEmail::to() about the valid values
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class EMAIL_CONFIG {
|
class EmailConfig {
|
||||||
|
|
||||||
public $default = array(
|
public $default = array(
|
||||||
'driver' => 'mail',
|
'driver' => 'mail',
|
||||||
|
|
|
@ -854,7 +854,7 @@ class CakeEmail {
|
||||||
if (!config('email')) {
|
if (!config('email')) {
|
||||||
throw new SocketException(__d('cake', '%s not found.', APP . 'config' . DS . 'email.php'));
|
throw new SocketException(__d('cake', '%s not found.', APP . 'config' . DS . 'email.php'));
|
||||||
}
|
}
|
||||||
$configs = new EMAIL_CONFIG();
|
$configs = new EmailConfig();
|
||||||
if (!isset($configs->{$this->_config})) {
|
if (!isset($configs->{$this->_config})) {
|
||||||
throw new SocketException(__d('cake', 'Unknown email configuration "%s".', $this->_config));
|
throw new SocketException(__d('cake', 'Unknown email configuration "%s".', $this->_config));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue