Consistent event naming

This commit is contained in:
Sam Georges 2014-07-04 18:51:16 +10:00
parent 3617a7fea8
commit b09cf7b262
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
* **Build 11x** (2014-07-xx)
- Important! All references to *Email* have been changed to *Mail* and renaming may be required in plugins.
* **Build 114** (2014-07-03)
- Created a new Record Finder form widget for searching related records.
- All instances now use the Cron queue driver by default (see config queue.default).

View File

@ -109,7 +109,7 @@ class ServiceProvider extends ModuleServiceProvider
* Override standard Mailer content with template
*/
Event::listen('mailer.register', function($provider, $mailer) {
$mailer->bindEvent('beforeAddContent', function($message, $view, $plain, $data){
$mailer->bindEvent('mailer.beforeAddContent', function($message, $view, $plain, $data){
if (MailTemplate::addContentToMailer($message, $view, $data))
return false;
});