X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fmailer%2Fdebug%2Fclass_DebugMailer.php;h=a3e1fa13bcf497a01fb91a1c6eebafe4101b297f;hp=e72523d2731b524e99bc90bf4a222b2ee1dc08f0;hb=9e1c690519dc4666fbb7d4a66b950d56770b25e0;hpb=ce7fedcb87f9c34c63c5c4cf790e1a4cd7eb834e diff --git a/inc/classes/main/mailer/debug/class_DebugMailer.php b/inc/classes/main/mailer/debug/class_DebugMailer.php index e72523d2..a3e1fa13 100644 --- a/inc/classes/main/mailer/debug/class_DebugMailer.php +++ b/inc/classes/main/mailer/debug/class_DebugMailer.php @@ -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 }