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 e72523d2731b524e99bc90bf4a222b2ee1dc08f0..a3e1fa13bcf497a01fb91a1c6eebafe4101b297f 100644 (file)
@@ -52,7 +52,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                $mailerInstance->setApplicationInstance($applicationInstance);
 
                // Set template name
-               $mailerInstance->setTemplateName('resend_link');
+               $mailerInstance->setTemplateName($templateName);
 
                // 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);
-                               }
+                               } // END - if
 
                                // 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
-                               $this->getTemplateInstance()->transferToResponse($responseInstance);
+                               $templateInstance->transferToResponse($responseInstance);
                        } // END - foreach
                } // END - foreach
        }