Commit 9097846f by Tuomas Riihimäki

Moar templatefix

1 parent 4e88e384
...@@ -71,15 +71,21 @@ public class SessionHandler { ...@@ -71,15 +71,21 @@ public class SessionHandler {
return template; return template;
} }
public String getTemplate() { public String getTemplatePath()
{
if (template == null) { if (template == null) {
template = eventbean.getPropertyString(LanEventPropertyKey.EVENT_LAYOUT); template = eventbean.getPropertyString(LanEventPropertyKey.EVENT_LAYOUT);
} }
if (template == null) { if (template == null) {
template = "insomnia2"; template = "insomnia2";
} }
return "/resources/templates/"+template+"/template.xhtml"; return "/resources/templates/" + template;
}
public String getTemplate() {
return getTemplatePath() + "/template.xhtml";
} }
// public boolean hasPermission(String target, String permission) { // public boolean hasPermission(String target, String permission) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!