Example #1
0
/**
 * Fetch the email template parser and return it.
 *
 * @return The TEMPLATE class configured for sending emails.
 */
function FetchEmailTemplateParser()
{
    static $emailTemplate;
    if (!$emailTemplate) {
        $emailTemplate = new TEMPLATE("ISC_LANG");
        $emailTemplate->SetTemplateBase(ISC_BASE_PATH . "/templates/__emails/");
        $emailTemplate->panelPHPDir = ISC_BASE_PATH . '/includes/Panels/';
        $emailTemplate->templateExt = 'html';
    }
    return $emailTemplate;
}