Kawai Wiki

Compare Revisions

Ignore whitespace Rev 64 → Rev 65

/trunk/src/main/java/org/kawai/dao/jdbc/JdbcPageDAO.java
258,12 → 258,18
if (p == null) {
// we may still have a preview...
Preview preview = loadPreview(userId, name, lang);
if (preview != null) return preview.getPage();
if (preview != null) {
preview.setNew(true);
return preview.getPage();
}
return null;
} else {
// check if we have a preview for this page...
Preview preview = loadPreview(userId, name, lang);
if (preview != null) p.setPreview(preview);
if (preview != null) {
preview.setNew(false);
p.setPreview(preview);
}
return p;
}
}