Fossil SCM
Merged login-on-post branch to trunk
Commit
c0e384cf60b72911961dcfb2c1d2c0bb44de88f7a3d99dd8b5bfba357c322cb7
Parent
4af31f11bb6473f…
1 file changed
+6
+6
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -973,10 +973,16 @@ | ||
| 973 | 973 | return; |
| 974 | 974 | } |
| 975 | 975 | style_header("Forum"); |
| 976 | 976 | if( g.perm.WrForum ){ |
| 977 | 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"); | |
| 978 | 984 | } |
| 979 | 985 | if( g.perm.ModForum && moderation_needed() ){ |
| 980 | 986 | style_submenu_element("Moderation Requests", "%R/modreq"); |
| 981 | 987 | } |
| 982 | 988 | if( (srchFlags & SRCH_FORUM)!=0 ){ |
| 983 | 989 |
| --- 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 |