*
* @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
*
/**
* 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();
$mailerInstance->setTemplateInstance($templateInstance);
// Set application instance
- $mailerInstance->setApplicationInstance($appInstance);
+ $mailerInstance->setApplicationInstance($applicationInstance);
// Set template name
$mailerInstance->setTemplateName('resend_link');
$templateInstance->assignTemplateWithVariable('footer', 'footer');
// Load the master template
- $templateInstance->loadCodeTemplate($this->getApplicationInstance()->getMasterTemplate());
+ $templateInstance->loadCodeTemplate($this->getApplicationInstance()->buildMasterTemplateName());
// Then compile it again
$templateInstance->compileVariables();