From: Roland Haeder Date: Thu, 14 May 2015 09:21:13 +0000 (+0200) Subject: Some fixes. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=9e1c690519dc4666fbb7d4a66b950d56770b25e0;hp=ce7fedcb87f9c34c63c5c4cf790e1a4cd7eb834e Some fixes. Signed-off-by: Roland Häder --- 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 }