From 507b2e66e87058299bbf3e07f709a077650d1506 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 20 Jul 2007 02:20:49 +0000 Subject: [PATCH] r1591: Fix the user approval system by actually getting email templates correctly --- admin/usergroup.php | 3 ++- docs/changes.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/admin/usergroup.php b/admin/usergroup.php index 89aee29..0a7362a 100755 --- a/admin/usergroup.php +++ b/admin/usergroup.php @@ -334,7 +334,8 @@ if ($_POST['do'] == 'doapprove') $users = $db->query("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid IN (" . implode(',', $idlist) . ")"); while ($user = $db->fetch_array($users)) { - eval('$email = "' . $template->fetch('email/accountapproved.xml') . '";'); + $tpl = $template->fetch(FetchEmailPath('accountapproved.xml', $bugsys->datastore['language'][$bugsys->options['defaultlanguage']]['langcode'])); + eval('$email = "' . $tpl . '";'); $email = $bugsys->xml->parse($email); $mail->setSubject($email['email']['subject']['value']); $mail->setBodyText($email['email']['bodyText']['value']); diff --git a/docs/changes.txt b/docs/changes.txt index 3f7dee8..2f53dd2 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,6 +1,7 @@ 1.2.2 =============================== - Fixed: A "Call-time pass-by-reference has been deprecated" on search.php +- Fixed: Users could not be approved due to a improper email template paths 1.2.1 =============================== -- 2.43.5