]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/commands/html/class_HtmlResendLinkCommand.php
Continued:
[core.git] / framework / main / classes / commands / html / class_HtmlResendLinkCommand.php
index db4c68772222151418efc24eab606dd9dda90568..72e24a68bd0d518c29f233b0e37697ecdd1cfcbe 100644 (file)
@@ -96,17 +96,14 @@ class HtmlResendLinkCommand extends BaseCommand implements Commandable {
                // Re-set config entry to mailer engine
                FrameworkBootstrap::getConfigurationInstance()->setConfigEntry('html_template_class', FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('mail_template_class'));
 
-               // Prepare the template engine
-               $templateInstance = $this->prepareTemplateInstance($applicationInstance);
-
                // Assign the application data with the template engine
-               $templateInstance->assignApplicationData();
+               $this->getTemplateInstance()->assignApplicationData();
 
                // Get a mailer class
-               $mailerInstance = ObjectFactory::createObjectByConfiguredName('mailer_class', array($templateInstance, 'resend_link'));
+               $mailerInstance = ObjectFactory::createObjectByConfiguredName('mailer_class', array($this->getTemplateInstance(), 'resend_link'));
 
                // Set this mailer in our template engine
-               $templateInstance->setMailerInstance($mailerInstance);
+               $this->getTemplateInstance()->setMailerInstance($mailerInstance);
 
                // Add template variables we shall get
                $mailerInstance->addConfigTemplateVariable('base_url');