Fossil

Check-in [c0e384cf]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Merged login-on-post branch to trunk
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c0e384cf60b72911961dcfb2c1d2c0bb44de88f7a3d99dd8b5bfba357c322cb7
User & Date: wyoung 2018-11-09 19:18:54
Context
2018-11-10
13:49
Do not attempt to run backoffice if the repository is read-only. check-in: 4f15d34f user: drh tags: trunk
2018-11-09
19:18
Merged login-on-post branch to trunk check-in: c0e384cf user: wyoung tags: trunk
19:16
Another attempt to fix non-constant format complaint. Closed-Leaf check-in: 725630f3 user: wyoung tags: login-on-post
2018-11-08
02:38
Improve grep documentation check-in: 4af31f11 user: andygoth tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/forum.c.

   971    971     if( !g.perm.RdForum ){
   972    972       login_needed(g.anon.RdForum);
   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       if( search_screen(SRCH_FORUM, 0) ){
   984    990         style_submenu_element("Recent Threads","%R/forum");