diff --git a/src/main/java/org/olat/repository/RepositoryMailing.java b/src/main/java/org/olat/repository/RepositoryMailing.java index 74097968becc04db57dd710c5dd4f85cdb8504d1..3f8ba50f1f729592c210f2100b07f2e6f9876737 100644 --- a/src/main/java/org/olat/repository/RepositoryMailing.java +++ b/src/main/java/org/olat/repository/RepositoryMailing.java @@ -79,7 +79,7 @@ public class RepositoryMailing { * @param actor * @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 bodyKey = "notification.mail.added.body"; return createMailTemplate(re, actor, subjectKey, bodyKey); @@ -92,7 +92,7 @@ public class RepositoryMailing { * @param actor * @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 bodyKey = "notification.mail.removed.body"; return createMailTemplate(re, actor, subjectKey, bodyKey); @@ -174,9 +174,6 @@ public class RepositoryMailing { String subject = trans.translate(subjectKey); 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 MailTemplate mailTempl = new MailTemplate(subject, body, null) { @Override