1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-24 11:56:36 +02:00

added a personalized email template. if the file:

my_email_article_template.txt

exists it will be used, otherwise the default will be used
This commit is contained in:
justauser 2013-05-29 16:23:04 -04:00
parent ed7dd4bf6c
commit f766373271

View File

@ -50,7 +50,10 @@ class Mail extends Plugin {
$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);