Fossil SCM

don't hardcode default value of "ticket-change" code

jan.nijtmans 2013-10-13 15:19 UTC tkt-change-hook
Commit 0e1f94732c354b9b1cd62db473bd2fe8e81ead72
1 file changed +1 -1
+1 -1
--- src/tkt.c
+++ src/tkt.c
@@ -324,11 +324,11 @@
324324
** Create the TH1 interpreter and load the "change" code.
325325
*/
326326
int ticket_change(void){
327327
const char *zConfig;
328328
Th_FossilInit(TH_INIT_DEFAULT);
329
- zConfig = db_get("ticket-change", "return\n");
329
+ zConfig = ticket_change_code();
330330
return Th_Eval(g.interp, 0, zConfig, -1);
331331
}
332332
333333
/*
334334
** Recreate the TICKET and TICKETCHNG tables.
335335
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button