my_email_article_template.txt
exists it will be used, otherwise the default will be used
$tpl = new MiniTemplator;
$tpl_t = new MiniTemplator;
- $tpl->readTemplateFromFile("templates/email_article_template.txt");
+ $templ_name = "templates/email_article_template.txt";
+ if(file_exists("templates/my_email_article_template.txt"))
+ $templ_name = "templates/my_email_article_template.txt";
+ $tpl->readTemplateFromFile($templ_name);
$tpl->setVariable('USER_NAME', $_SESSION["name"], true);
$tpl->setVariable('USER_EMAIL', $user_email, true);