Skip to content
Snippets Groups Projects
Commit a29a7270 authored by aboeckle's avatar aboeckle
Browse files

OO-4603 Fixed DMZ imprint

parent 5b056695
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ public class ContactController extends BasicController implements GenericEventLi
private final VelocityContainer content;
private ContactFormController contactForm;
private static String contactEmail = null;
private String contactEmail = null;
@Autowired
private ImpressumModule impressumModule;
......@@ -59,11 +59,9 @@ public class ContactController extends BasicController implements GenericEventLi
super(ureq, control);
this.content = createVelocityContainer("contact");
// load configuration only once
if (contactEmail == null) {
// Read the destination email from the impressModule
contactEmail = impressumModule.getContactMail();
}
// Read the destination email from the impressModule
contactEmail = impressumModule.getContactMail();
System.out.println(contactEmail);
// Initialize a few contact list management objects.
ContactMessage contactMessage = new ContactMessage(ureq.getIdentity());
......
......@@ -82,6 +82,7 @@
<property name="extensionPoints">
<list>
<value>org.olat.core.commons.controllers.impressum.ImpressumMainController</value>
<value>org.olat.core.commons.controllers.impressum.ImpressumDmzMainController</value>
</list>
</property>
<property name="order" value="704"/>
......
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