Skip to content

Commit

Permalink
Changed the classname of email config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 17, 2011
1 parent 1e491b0 commit 42ee001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/config/email.php.default
Expand Up @@ -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
Expand All @@ -39,7 +39,7 @@
* The origin email. See CakeEmail::to() about the valid values
*
*/
class EMAIL_CONFIG {
class EmailConfig {

public $default = array(
'driver' => 'mail',
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeEmail.php
Expand Up @@ -854,7 +854,7 @@ public function send($content = null) {
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));
}
Expand Down

0 comments on commit 42ee001

Please sign in to comment.