Fossil

Check-in [9e2d2676]
Login

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

Overview
Comment:Fix a C++-ism in report.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9e2d2676a4074cc4aee65892b50bff74e3539ea5
User & Date: drh 2008-06-08 15:10:20
Context
2008-06-08
15:45
Better error messages when trying to run "fossil ui" with an invalid or unaccessible repository. check-in: dcc48662 user: drh tags: trunk
15:10
Fix a C++-ism in report.c. check-in: 9e2d2676 user: drh tags: trunk
2008-06-06
20:11
Change the "omitsign" setting into "clearsign" and invert its sense. check-in: 3f706b92 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/report.c.

50
51
52
53
54
55
56
57
58
59

60
61
62
63
64
65
66
  if( !g.okRdTkt ){
    @ <p>You are not authorized to view existing bug reports.</p>
  }else{
    db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title");
    @ <p>Choose a report format from the following list:</p>
    @ <ol>
    while( db_step(&q)==SQLITE_ROW ){
      rn = db_column_int(&q, 0);
      const char *zTitle = db_column_text(&q, 1);
      const char *zOwner = db_column_text(&q, 2);

      cnt++;
      @ <li value="%d(cnt)"><a href="rptview?rn=%d(rn)"
      @        rel="nofollow">%h(zTitle)</a>&nbsp;&nbsp;&nbsp;
      if( g.okWrite && zOwner && zOwner[0] ){
        @ (by <i>%h(zOwner)</i>)
      }
      if( g.okTktFmt ){







<


>







50
51
52
53
54
55
56

57
58
59
60
61
62
63
64
65
66
  if( !g.okRdTkt ){
    @ <p>You are not authorized to view existing bug reports.</p>
  }else{
    db_prepare(&q, "SELECT rn, title, owner FROM reportfmt ORDER BY title");
    @ <p>Choose a report format from the following list:</p>
    @ <ol>
    while( db_step(&q)==SQLITE_ROW ){

      const char *zTitle = db_column_text(&q, 1);
      const char *zOwner = db_column_text(&q, 2);
      rn = db_column_int(&q, 0);
      cnt++;
      @ <li value="%d(cnt)"><a href="rptview?rn=%d(rn)"
      @        rel="nofollow">%h(zTitle)</a>&nbsp;&nbsp;&nbsp;
      if( g.okWrite && zOwner && zOwner[0] ){
        @ (by <i>%h(zOwner)</i>)
      }
      if( g.okTktFmt ){