Differences From:
File
src/wiki.c
part of check-in
[bf428e6854]
- Now able to enter and edit and display wiki pages. Still many problems
to be resolved.
by
drh on
2007-10-06 13:13:33.
[view]
To:
File
src/wiki.c
part of check-in
[6d58613757]
- Timeline comments are now rendered as wiki. Wiki changes appear on
the timeline.
by
drh on
2007-10-06 16:37:39.
[view]
@@ -67,10 +67,10 @@
blob_init(&wiki, zBody, -1);
wiki_convert(&wiki, 0);
blob_reset(&wiki);
manifest_clear(&m);
- @ <hr>
- if( (rid && g.okWrWiki) || (!rid && g.okNewWiki) ){
+ if( zPageName[0] && ((rid && g.okWrWiki) || (!rid && g.okNewWiki)) ){
+ @ <hr>
@ [<a href="%s(g.zBaseURL)/wikiedit/%s(g.zExtra)">Edit</a>]
}
style_footer();
}
@@ -147,9 +147,9 @@
content_deltify(rid, nrid, 0);
db_end_transaction(0);
cgi_redirect(mprintf("wiki/%s", g.zExtra));
}
- if( P("cancel")!=0 ){
+ if( P("cancel")!=0 || zPageName[0]==0 ){
cgi_redirect(mprintf("wiki/%s", g.zExtra));
return;
}
if( zBody==0 ){