Fossil SCM

Merged login-on-post branch to trunk

wyoung 2018-11-09 19:18 trunk merge
Commit c0e384cf60b72911961dcfb2c1d2c0bb44de88f7a3d99dd8b5bfba357c322cb7
1 file changed +6
--- src/forum.c
+++ src/forum.c
@@ -973,10 +973,16 @@
973973
return;
974974
}
975975
style_header("Forum");
976976
if( g.perm.WrForum ){
977977
style_submenu_element("New Thread","%R/forumnew");
978
+ }else{
979
+ /* Can't combine this with previous case using the ternary operator
980
+ * because that causes an error yelling about "non-constant format"
981
+ * with some compilers. I can't see it, since both expressions have
982
+ * the same format, but I'm no C spec lawyer. */
983
+ style_submenu_element("New Thread","%R/login");
978984
}
979985
if( g.perm.ModForum && moderation_needed() ){
980986
style_submenu_element("Moderation Requests", "%R/modreq");
981987
}
982988
if( (srchFlags & SRCH_FORUM)!=0 ){
983989
--- src/forum.c
+++ src/forum.c
@@ -973,10 +973,16 @@
973 return;
974 }
975 style_header("Forum");
976 if( g.perm.WrForum ){
977 style_submenu_element("New Thread","%R/forumnew");
 
 
 
 
 
 
978 }
979 if( g.perm.ModForum && moderation_needed() ){
980 style_submenu_element("Moderation Requests", "%R/modreq");
981 }
982 if( (srchFlags & SRCH_FORUM)!=0 ){
983
--- src/forum.c
+++ src/forum.c
@@ -973,10 +973,16 @@
973 return;
974 }
975 style_header("Forum");
976 if( g.perm.WrForum ){
977 style_submenu_element("New Thread","%R/forumnew");
978 }else{
979 /* Can't combine this with previous case using the ternary operator
980 * because that causes an error yelling about "non-constant format"
981 * with some compilers. I can't see it, since both expressions have
982 * the same format, but I'm no C spec lawyer. */
983 style_submenu_element("New Thread","%R/login");
984 }
985 if( g.perm.ModForum && moderation_needed() ){
986 style_submenu_element("Moderation Requests", "%R/modreq");
987 }
988 if( (srchFlags & SRCH_FORUM)!=0 ){
989

Keyboard Shortcuts

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