]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/mailer/debug/class_DebugMailer.php
Copyright updated
[core.git] / inc / classes / main / mailer / debug / class_DebugMailer.php
index 14bdd412db4a536714a6ac233d0be29f3cd2c0fc..ccd3022aaba8e098af33a838abe1b6871cfeb911 100644 (file)
@@ -5,7 +5,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -36,12 +36,12 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
        /**
         * Creates an instance of this mailer class
         *
-        * @param       $templateInstance       A template instance
-        * @param       $appInstance            An application helper class
-        * @param       $templateName           Name of email template to set
-        * @return      $mailerInstance         An instance of this mailer class
+        * @param       $templateInstance               A template instance
+        * @param       $applicationInstance    An application helper class
+        * @param       $templateName                   Name of email template to set
+        * @return      $mailerInstance                 An instance of this mailer class
         */
-       public final static function createDebugMailer (CompileableTemplate $templateInstance, ManageableApplication $appInstance, $templateName) {
+       public static final function createDebugMailer (CompileableTemplate $templateInstance, ManageableApplication $applicationInstance, $templateName) {
                // Get a new instance
                $mailerInstance = new DebugMailer();
 
@@ -49,7 +49,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                $mailerInstance->setTemplateInstance($templateInstance);
 
                // Set application instance
-               $mailerInstance->setApplicationInstance($appInstance);
+               $mailerInstance->setApplicationInstance($applicationInstance);
 
                // Set template name
                $mailerInstance->setTemplateName('resend_link');
@@ -164,7 +164,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                $templateInstance->assignTemplateWithVariable('footer', 'footer');
 
                // Load the master template
-               $templateInstance->loadCodeTemplate($this->getApplicationInstance()->getMasterTemplate());
+               $templateInstance->loadCodeTemplate($this->getApplicationInstance()->buildMasterTemplateName());
 
                // Then compile it again
                $templateInstance->compileVariables();