Fossil SCM
don't hardcode default value of "ticket-change" code
Commit
0e1f94732c354b9b1cd62db473bd2fe8e81ead72
Parent
12c53e1cb6f714b…
1 file changed
+1
-1
+1
-1
| --- src/tkt.c | ||
| +++ src/tkt.c | ||
| @@ -324,11 +324,11 @@ | ||
| 324 | 324 | ** Create the TH1 interpreter and load the "change" code. |
| 325 | 325 | */ |
| 326 | 326 | int ticket_change(void){ |
| 327 | 327 | const char *zConfig; |
| 328 | 328 | Th_FossilInit(TH_INIT_DEFAULT); |
| 329 | - zConfig = db_get("ticket-change", "return\n"); | |
| 329 | + zConfig = ticket_change_code(); | |
| 330 | 330 | return Th_Eval(g.interp, 0, zConfig, -1); |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | 333 | /* |
| 334 | 334 | ** Recreate the TICKET and TICKETCHNG tables. |
| 335 | 335 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -324,11 +324,11 @@ | |
| 324 | ** Create the TH1 interpreter and load the "change" code. |
| 325 | */ |
| 326 | int ticket_change(void){ |
| 327 | const char *zConfig; |
| 328 | Th_FossilInit(TH_INIT_DEFAULT); |
| 329 | zConfig = db_get("ticket-change", "return\n"); |
| 330 | return Th_Eval(g.interp, 0, zConfig, -1); |
| 331 | } |
| 332 | |
| 333 | /* |
| 334 | ** Recreate the TICKET and TICKETCHNG tables. |
| 335 |
| --- src/tkt.c | |
| +++ src/tkt.c | |
| @@ -324,11 +324,11 @@ | |
| 324 | ** Create the TH1 interpreter and load the "change" code. |
| 325 | */ |
| 326 | int ticket_change(void){ |
| 327 | const char *zConfig; |
| 328 | Th_FossilInit(TH_INIT_DEFAULT); |
| 329 | zConfig = ticket_change_code(); |
| 330 | return Th_Eval(g.interp, 0, zConfig, -1); |
| 331 | } |
| 332 | |
| 333 | /* |
| 334 | ** Recreate the TICKET and TICKETCHNG tables. |
| 335 |