Fossil SCM

renamed json timeline "showFiles" option to "files" because we do not really "show" anything."

stephan 2011-10-02 20:15 UTC json-multitag-test
Commit bc7af5192a40230c43f1ad7be967ead92c608113
1 file changed +2 -2
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -380,13 +380,13 @@
380380
if( !g.perm.Read/* && !g.perm.RdTkt && !g.perm.RdWiki*/ ){
381381
g.json.resultCode = FSL_JSON_E_DENIED;
382382
return NULL;
383383
}
384384
if( g.isHTTP ){
385
- showFiles = json_getenv_bool("showFiles",0);
385
+ showFiles = json_getenv_bool("files",0);
386386
}else{
387
- showFiles = 0!=find_option("show-files", "f",0);
387
+ showFiles = 0!=find_option("files", "f",0);
388388
}
389389
payV = cson_value_new_object();
390390
pay = cson_value_get_object(payV);
391391
check = json_timeline_setup_sql( "ci", &sql, pay );
392392
if(check){
393393
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -380,13 +380,13 @@
380 if( !g.perm.Read/* && !g.perm.RdTkt && !g.perm.RdWiki*/ ){
381 g.json.resultCode = FSL_JSON_E_DENIED;
382 return NULL;
383 }
384 if( g.isHTTP ){
385 showFiles = json_getenv_bool("showFiles",0);
386 }else{
387 showFiles = 0!=find_option("show-files", "f",0);
388 }
389 payV = cson_value_new_object();
390 pay = cson_value_get_object(payV);
391 check = json_timeline_setup_sql( "ci", &sql, pay );
392 if(check){
393
--- src/json_timeline.c
+++ src/json_timeline.c
@@ -380,13 +380,13 @@
380 if( !g.perm.Read/* && !g.perm.RdTkt && !g.perm.RdWiki*/ ){
381 g.json.resultCode = FSL_JSON_E_DENIED;
382 return NULL;
383 }
384 if( g.isHTTP ){
385 showFiles = json_getenv_bool("files",0);
386 }else{
387 showFiles = 0!=find_option("files", "f",0);
388 }
389 payV = cson_value_new_object();
390 pay = cson_value_get_object(payV);
391 check = json_timeline_setup_sql( "ci", &sql, pay );
392 if(check){
393

Keyboard Shortcuts

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