Fossil SCM
Fix a couple of minor issues with settings, as pointed out on the mailing list.
Commit
cb2ff51c4badd3e787db14273b0ffc07137f269c
Parent
098e363301bc5ca…
2 files changed
+1
-1
+2
-2
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1523,11 +1523,11 @@ | ||
| 1523 | 1523 | { "gdiff-command", 0, 16, "gdiff" }, |
| 1524 | 1524 | { "ignore-glob", 0, 40, "" }, |
| 1525 | 1525 | { "http-port", 0, 16, "8080" }, |
| 1526 | 1526 | { "localauth", 0, 0, "off" }, |
| 1527 | 1527 | { "manifest", 0, 0, "off" }, |
| 1528 | - { "mtime-changes", 0, 0, "off" }, | |
| 1528 | + { "mtime-changes", 0, 0, "on" }, | |
| 1529 | 1529 | { "pgp-command", 0, 32, "gpg --clearsign -o " }, |
| 1530 | 1530 | { "proxy", 0, 32, "off" }, |
| 1531 | 1531 | { "repo-cksum", 0, 0, "on" }, |
| 1532 | 1532 | { "ssh-command", 0, 32, "" }, |
| 1533 | 1533 | { "web-browser", 0, 32, "" }, |
| 1534 | 1534 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1523,11 +1523,11 @@ | |
| 1523 | { "gdiff-command", 0, 16, "gdiff" }, |
| 1524 | { "ignore-glob", 0, 40, "" }, |
| 1525 | { "http-port", 0, 16, "8080" }, |
| 1526 | { "localauth", 0, 0, "off" }, |
| 1527 | { "manifest", 0, 0, "off" }, |
| 1528 | { "mtime-changes", 0, 0, "off" }, |
| 1529 | { "pgp-command", 0, 32, "gpg --clearsign -o " }, |
| 1530 | { "proxy", 0, 32, "off" }, |
| 1531 | { "repo-cksum", 0, 0, "on" }, |
| 1532 | { "ssh-command", 0, 32, "" }, |
| 1533 | { "web-browser", 0, 32, "" }, |
| 1534 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1523,11 +1523,11 @@ | |
| 1523 | { "gdiff-command", 0, 16, "gdiff" }, |
| 1524 | { "ignore-glob", 0, 40, "" }, |
| 1525 | { "http-port", 0, 16, "8080" }, |
| 1526 | { "localauth", 0, 0, "off" }, |
| 1527 | { "manifest", 0, 0, "off" }, |
| 1528 | { "mtime-changes", 0, 0, "on" }, |
| 1529 | { "pgp-command", 0, 32, "gpg --clearsign -o " }, |
| 1530 | { "proxy", 0, 32, "off" }, |
| 1531 | { "repo-cksum", 0, 0, "on" }, |
| 1532 | { "ssh-command", 0, 32, "" }, |
| 1533 | { "web-browser", 0, 32, "" }, |
| 1534 |
+2
-2
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -694,11 +694,11 @@ | ||
| 694 | 694 | } |
| 695 | 695 | if( iVal ){ |
| 696 | 696 | @ <input type="checkbox" name="%s(zQParm)" checked="checked" /> |
| 697 | 697 | @ <b>%s(zLabel)</b> |
| 698 | 698 | }else{ |
| 699 | - @ <input type="checkbox" name="%s(zQParm)" /><b>%s(zLabel)</b> | |
| 699 | + @ <input type="checkbox" name="%s(zQParm)" /> <b>%s(zLabel)</b> | |
| 700 | 700 | } |
| 701 | 701 | } |
| 702 | 702 | |
| 703 | 703 | /* |
| 704 | 704 | ** Generate an entry box for an attribute. |
| @@ -877,11 +877,11 @@ | ||
| 877 | 877 | login_insert_csrf_secret(); |
| 878 | 878 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 879 | 879 | if( pSet->width==0 ){ |
| 880 | 880 | onoff_attribute(pSet->name, pSet->name, |
| 881 | 881 | pSet->var!=0 ? pSet->var : pSet->name, |
| 882 | - pSet->def[0]=='1'); | |
| 882 | + is_truth(pSet->def)); | |
| 883 | 883 | @ <br /> |
| 884 | 884 | } |
| 885 | 885 | } |
| 886 | 886 | @ </td><td style="width: 30;"></td><td valign="top"> |
| 887 | 887 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 888 | 888 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -694,11 +694,11 @@ | |
| 694 | } |
| 695 | if( iVal ){ |
| 696 | @ <input type="checkbox" name="%s(zQParm)" checked="checked" /> |
| 697 | @ <b>%s(zLabel)</b> |
| 698 | }else{ |
| 699 | @ <input type="checkbox" name="%s(zQParm)" /><b>%s(zLabel)</b> |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | /* |
| 704 | ** Generate an entry box for an attribute. |
| @@ -877,11 +877,11 @@ | |
| 877 | login_insert_csrf_secret(); |
| 878 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 879 | if( pSet->width==0 ){ |
| 880 | onoff_attribute(pSet->name, pSet->name, |
| 881 | pSet->var!=0 ? pSet->var : pSet->name, |
| 882 | pSet->def[0]=='1'); |
| 883 | @ <br /> |
| 884 | } |
| 885 | } |
| 886 | @ </td><td style="width: 30;"></td><td valign="top"> |
| 887 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 888 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -694,11 +694,11 @@ | |
| 694 | } |
| 695 | if( iVal ){ |
| 696 | @ <input type="checkbox" name="%s(zQParm)" checked="checked" /> |
| 697 | @ <b>%s(zLabel)</b> |
| 698 | }else{ |
| 699 | @ <input type="checkbox" name="%s(zQParm)" /> <b>%s(zLabel)</b> |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | /* |
| 704 | ** Generate an entry box for an attribute. |
| @@ -877,11 +877,11 @@ | |
| 877 | login_insert_csrf_secret(); |
| 878 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 879 | if( pSet->width==0 ){ |
| 880 | onoff_attribute(pSet->name, pSet->name, |
| 881 | pSet->var!=0 ? pSet->var : pSet->name, |
| 882 | is_truth(pSet->def)); |
| 883 | @ <br /> |
| 884 | } |
| 885 | } |
| 886 | @ </td><td style="width: 30;"></td><td valign="top"> |
| 887 | for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 888 |