Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9097846f
authored
May 09, 2013
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moar templatefix
1 parent
4e88e384
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
code/MoyaWeb/src/fi/codecrew/moya/handler/SessionHandler.java
code/MoyaWeb/src/fi/codecrew/moya/handler/SessionHandler.java
View file @
9097846
...
@@ -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) {
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment