X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fmailer%2Fdebug%2Fclass_DebugMailer.php;h=c9292dda89d3ffa8e8d9a5b66aeb55f85d82162e;hp=b7781ca7d623cde641d50a7c415406c1ffac4cda;hb=8d8cf621bd811811cecd83c65a4ab91f27258e79;hpb=8a14c547a7c7ef07bc3d67778aa4008fa17d703f diff --git a/framework/main/classes/mailer/debug/class_DebugMailer.php b/framework/main/classes/mailer/debug/class_DebugMailer.php index b7781ca7..c9292dda 100644 --- a/framework/main/classes/mailer/debug/class_DebugMailer.php +++ b/framework/main/classes/mailer/debug/class_DebugMailer.php @@ -1,14 +1,16 @@ renderXmlContent(); // Get responce instance - $responseInstance = $this->getApplicationInstance()->getResponseInstance(); + $responseInstance = FrameworkBootstrap::getResponseInstance(); // Transfer the data to the response $templateInstance->transferToResponse($responseInstance); @@ -175,7 +177,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail { $templateInstance->assignTemplateWithVariable('footer', 'footer'); // Load the master template - $templateInstance->loadCodeTemplate($this->getApplicationInstance()->buildMasterTemplateName()); + $templateInstance->loadCodeTemplate(GenericRegistry::getRegistry()->getInstance('application')->buildMasterTemplateName()); // Then compile it again $templateInstance->compileVariables();