Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 59f3579c
authored
May 12, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If event logo is empty, show event logotext instead.
1 parent
dcd4df0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
code/MoyaWeb/src/fi/codecrew/moya/web/helper/LayoutView.java
View file @
59f3579
...
...
@@ -182,7 +182,8 @@ public class LayoutView implements Serializable {
LanEventProperty
logo
=
eventbean
.
getProperty
(
LanEventPropertyKey
.
EVENT_LOGO
);
if
(
logo
!=
null
)
{
if
(
logo
.
getByteMime
()
==
null
||
logo
.
getByteValue
()
==
null
)
{
logger
.
info
(
"Logo is not null. mime {}, bytes {}"
,
logo
.
getByteMime
(),
logo
.
getByteValue
().
length
);
if
(
logo
.
getByteMime
()
==
null
||
logo
.
getByteValue
()
==
null
||
logo
.
getByteValue
().
length
==
0
)
{
headertext
=
logo
.
getTextvalue
();
}
else
{
headerimage
=
new
DefaultStreamedContent
(
new
ByteArrayInputStream
(
logo
.
getByteValue
()),
logo
.
getByteMime
());
...
...
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