Skip to content
Snippets Groups Projects
Commit 8d78654c authored by srosse's avatar srosse
Browse files

OO-1726: replace only with the velocity engine

parent 853d95e4
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ public class RepositoryMailing { ...@@ -79,7 +79,7 @@ public class RepositoryMailing {
* @param actor * @param actor
* @return the generated MailTemplate * @return the generated MailTemplate
*/ */
public static MailTemplate createAddTutorMailTemplate(RepositoryEntry re, Identity actor) { private static MailTemplate createAddTutorMailTemplate(RepositoryEntry re, Identity actor) {
String subjectKey = "notification.mail.added.subject"; String subjectKey = "notification.mail.added.subject";
String bodyKey = "notification.mail.added.body"; String bodyKey = "notification.mail.added.body";
return createMailTemplate(re, actor, subjectKey, bodyKey); return createMailTemplate(re, actor, subjectKey, bodyKey);
...@@ -92,7 +92,7 @@ public class RepositoryMailing { ...@@ -92,7 +92,7 @@ public class RepositoryMailing {
* @param actor * @param actor
* @return the generated MailTemplate * @return the generated MailTemplate
*/ */
public static MailTemplate createRemoveParticipantMailTemplate(RepositoryEntry re, Identity actor) { private static MailTemplate createRemoveParticipantMailTemplate(RepositoryEntry re, Identity actor) {
String subjectKey = "notification.mail.removed.subject"; String subjectKey = "notification.mail.removed.subject";
String bodyKey = "notification.mail.removed.body"; String bodyKey = "notification.mail.removed.body";
return createMailTemplate(re, actor, subjectKey, bodyKey); return createMailTemplate(re, actor, subjectKey, bodyKey);
...@@ -174,9 +174,6 @@ public class RepositoryMailing { ...@@ -174,9 +174,6 @@ public class RepositoryMailing {
String subject = trans.translate(subjectKey); String subject = trans.translate(subjectKey);
String body = trans.translate(bodyKey, bodyArgs); String body = trans.translate(bodyKey, bodyArgs);
subject = subject.replaceAll("\\$coursename", reName == null ? "" : reName);
body = body.replaceAll("\\$coursedescription", redescription == null ? "" : redescription);
// create a mail template which all these data // create a mail template which all these data
MailTemplate mailTempl = new MailTemplate(subject, body, null) { MailTemplate mailTempl = new MailTemplate(subject, body, null) {
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment