Changed the classname of email config.

This commit is contained in:
Juan Basso 2011-04-17 18:11:46 -04:00
parent 1e491b0bbe
commit 42ee001d71
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@
* You can specify multiple configurations for production, development and testing.
*
* 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
*
* 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
*
*/
class EMAIL_CONFIG {
class EmailConfig {
public $default = array(
'driver' => 'mail',

View file

@ -854,7 +854,7 @@ class CakeEmail {
if (!config('email')) {
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})) {
throw new SocketException(__d('cake', 'Unknown email configuration "%s".', $this->_config));
}