Some fixes.
authorRoland Haeder <roland@mxchange.org>
Thu, 14 May 2015 09:21:13 +0000 (11:21 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 14 May 2015 09:21:13 +0000 (11:21 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/mailer/debug/class_DebugMailer.php

index e72523d..a3e1fa1 100644 (file)
@@ -52,7 +52,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                $mailerInstance->setApplicationInstance($applicationInstance);
 
                // Set template name
                $mailerInstance->setApplicationInstance($applicationInstance);
 
                // Set template name
-               $mailerInstance->setTemplateName('resend_link');
+               $mailerInstance->setTemplateName($templateName);
 
                // Return the instance
                return $mailerInstance;
 
                // Return the instance
                return $mailerInstance;
@@ -76,7 +76,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                                if (!$recipientInstance instanceof ManageableMember) {
                                        // Invalid entry found!
                                        throw new InvalidInterfaceException(array($this, 'ManageableMember'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING);
                                if (!$recipientInstance instanceof ManageableMember) {
                                        // Invalid entry found!
                                        throw new InvalidInterfaceException(array($this, 'ManageableMember'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING);
-                               }
+                               } // END - if
 
                                // User class found, so entry is valid, first load the template
                                $this->loadTemplate($templateName);
 
                                // User class found, so entry is valid, first load the template
                                $this->loadTemplate($templateName);
@@ -112,7 +112,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                                $responseInstance = $this->getApplicationInstance()->getResponseInstance();
 
                                // Transfer the data to the response
                                $responseInstance = $this->getApplicationInstance()->getResponseInstance();
 
                                // Transfer the data to the response
-                               $this->getTemplateInstance()->transferToResponse($responseInstance);
+                               $templateInstance->transferToResponse($responseInstance);
                        } // END - foreach
                } // END - foreach
        }
                        } // END - foreach
                } // END - foreach
        }