|
|
@ -165,7 +165,6 @@ public class BlogComments {
|
|
|
|
|
|
|
|
|
|
|
|
if(post.containsKey("preview")) {
|
|
|
|
if(post.containsKey("preview")) {
|
|
|
|
//preview the page
|
|
|
|
//preview the page
|
|
|
|
if(hasRights) {
|
|
|
|
|
|
|
|
prop.put("mode", 1);//preview
|
|
|
|
prop.put("mode", 1);//preview
|
|
|
|
prop.put("mode_pageid", pagename);
|
|
|
|
prop.put("mode_pageid", pagename);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -178,8 +177,6 @@ public class BlogComments {
|
|
|
|
prop.putWiki("mode_page", post.get("content", ""));
|
|
|
|
prop.putWiki("mode_page", post.get("content", ""));
|
|
|
|
prop.put("mode_page-code", post.get("content", ""));
|
|
|
|
prop.put("mode_page-code", post.get("content", ""));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else prop.put("mode",3); //access denied (no rights)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
// show blog-entry/entries
|
|
|
|
// show blog-entry/entries
|
|
|
|
prop.put("mode", 0); //viewing
|
|
|
|
prop.put("mode", 0); //viewing
|
|
|
|