Fixed variable name in MailSender
authorMatthias Schmidt <gravatronics@live.com>
Tue, 26 Jul 2011 11:42:20 +0000 (13:42 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 26 Jul 2011 11:42:20 +0000 (13:42 +0200)
MailSender::$defaultMailSender has been renamed to
MailSender::$instance.

wcfsetup/install/files/lib/system/mail/MailSender.class.php

index 447972dbf249790ee86c881be82c12f7ccc5cd55..674a122212768b841e3030deff32e6ab0e1bfdc1 100644 (file)
@@ -27,15 +27,15 @@ abstract class MailSender {
                if (self::$instance == null) {
                        switch (MAIL_SEND_METHOD) {
                                case 'php':
-                                       self::$defaultMailSender = new PHPMailSender();
+                                       self::$instance = new PHPMailSender();
                                        break;
                                
                                case 'smtp':
-                                       self::$defaultMailSender = new SMTPMailSender();
+                                       self::$instance = new SMTPMailSender();
                                        break;
                                
                                case 'debug':
-                                       self::$defaultMailSender = new DebugMailSender();
+                                       self::$instance = new DebugMailSender();
                                        break;
                        }
                }