diff options
author | Andrew Dolgov <[email protected]> | 2020-03-13 14:40:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-03-13 14:40:35 +0300 |
commit | 1f2a7219054872d3cf968ac385a5f529db4a4333 (patch) | |
tree | 2e69281eb99b7c6542567703adf3d9d2b8ef0286 /plugins/mailto | |
parent | 82326187f9f9265699ac3f3c5fd20015de2616a3 (diff) |
allow overriding built-in templates via templates.local
Diffstat (limited to 'plugins/mailto')
-rw-r--r-- | plugins/mailto/init.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mailto/init.php b/plugins/mailto/init.php index 421d5fd59..390984b71 100644 --- a/plugins/mailto/init.php +++ b/plugins/mailto/init.php @@ -29,11 +29,9 @@ class MailTo extends Plugin { $ids = explode(",", $_REQUEST['param']); $ids_qmarks = arr_qmarks($ids); - require_once "lib/MiniTemplator.class.php"; + $tpl = new Templator(); - $tpl = new MiniTemplator; - - $tpl->readTemplateFromFile("templates/email_article_template.txt"); + $tpl->readTemplateFromFile("email_article_template.txt"); $tpl->setVariable('USER_NAME', $_SESSION["name"], true); //$tpl->setVariable('USER_EMAIL', $user_email, true); |