Fossil SCM

Do not omit a forum thread's title while rendering [/help?cmd=/forumthread|/forumthread] page.

george 2022-07-18 14:47 trunk
Commit ffd32a9f70172eae514e0655026e1ca5ae463e46e97496e988ec078fa0681501
1 file changed +1 -1
+1 -1
--- src/forum.c
+++ src/forum.c
@@ -862,11 +862,10 @@
862862
}
863863
froot = db_int(0, "SELECT froot FROM forumpost WHERE fpid=%d", fpid);
864864
if( froot==0 ){
865865
webpage_notfound_error("Not a forum post: \"%s\"", zName);
866866
}
867
- if( fossil_strcmp(g.zPath,"forumthread")==0 ) fpid = 0;
868867
869868
/* Decode the mode parameters. */
870869
if( bRaw ){
871870
mode = FD_RAW;
872871
bUnf = 1;
@@ -916,10 +915,11 @@
916915
}
917916
style_submenu_checkbox("unf", "Unformatted", 0, 0);
918917
style_submenu_checkbox("hist", "History", 0, 0);
919918
920919
/* Display the thread. */
920
+ if( fossil_strcmp(g.zPath,"forumthread")==0 ) fpid = 0;
921921
forum_display_thread(froot, fpid, mode, autoMode, bUnf, bHist);
922922
923923
/* Emit Forum Javascript. */
924924
builtin_request_js("forum.js");
925925
forum_emit_js();
926926
--- src/forum.c
+++ src/forum.c
@@ -862,11 +862,10 @@
862 }
863 froot = db_int(0, "SELECT froot FROM forumpost WHERE fpid=%d", fpid);
864 if( froot==0 ){
865 webpage_notfound_error("Not a forum post: \"%s\"", zName);
866 }
867 if( fossil_strcmp(g.zPath,"forumthread")==0 ) fpid = 0;
868
869 /* Decode the mode parameters. */
870 if( bRaw ){
871 mode = FD_RAW;
872 bUnf = 1;
@@ -916,10 +915,11 @@
916 }
917 style_submenu_checkbox("unf", "Unformatted", 0, 0);
918 style_submenu_checkbox("hist", "History", 0, 0);
919
920 /* Display the thread. */
 
921 forum_display_thread(froot, fpid, mode, autoMode, bUnf, bHist);
922
923 /* Emit Forum Javascript. */
924 builtin_request_js("forum.js");
925 forum_emit_js();
926
--- src/forum.c
+++ src/forum.c
@@ -862,11 +862,10 @@
862 }
863 froot = db_int(0, "SELECT froot FROM forumpost WHERE fpid=%d", fpid);
864 if( froot==0 ){
865 webpage_notfound_error("Not a forum post: \"%s\"", zName);
866 }
 
867
868 /* Decode the mode parameters. */
869 if( bRaw ){
870 mode = FD_RAW;
871 bUnf = 1;
@@ -916,10 +915,11 @@
915 }
916 style_submenu_checkbox("unf", "Unformatted", 0, 0);
917 style_submenu_checkbox("hist", "History", 0, 0);
918
919 /* Display the thread. */
920 if( fossil_strcmp(g.zPath,"forumthread")==0 ) fpid = 0;
921 forum_display_thread(froot, fpid, mode, autoMode, bUnf, bHist);
922
923 /* Emit Forum Javascript. */
924 builtin_request_js("forum.js");
925 forum_emit_js();
926

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button