summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/mail/init.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php
index 5b61c2355..3b1582081 100644
--- a/plugins/mail/init.php
+++ b/plugins/mail/init.php
@@ -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);