From 7f1ca1f552093b663721687a80081fd5c600278c Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 28 Nov 2004 08:45:26 +0000 Subject: [PATCH] fix for bug 1074486 - Web interface doesn't save some options --- admin-root/config.html | 8 ++++++++ src/configfile.c | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/admin-root/config.html b/admin-root/config.html index 7dafaca1..8b86cbd3 100644 --- a/admin-root/config.html +++ b/admin-root/config.html @@ -36,6 +36,14 @@ take effect. Server Name + + Logfile + + + + Art Filename + + Run As diff --git a/src/configfile.c b/src/configfile.c index 2b093363..d1b15003 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -337,6 +337,10 @@ int config_write(WS_CONNINFO *pwsc) { fprintf(configfile,"db_dir\t\t%s\n",ws_getvar(pwsc,"db_dir")); fprintf(configfile,"rescan_interval\t%s\n",ws_getvar(pwsc,"rescan_interval")); fprintf(configfile,"always_scan\t%s\n",ws_getvar(pwsc,"always_scan")); + if(ws_getvar(pwsc,"art_filename") && strlen(ws_getvar(pwsc,"art_filename"))) + fprintf(configfile,"art_filename\t%s\n",ws_getvar(pwsc,"art_filename")); + if(ws_getvar(pwsc,"logfile") && strlen(ws_getvar(pwsc,"logfile"))) + fprintf(configfile,"logfile\t\t%s\n",ws_getvar(pwsc,"logfile")); fprintf(configfile,"process_m3u\t%s\n",ws_getvar(pwsc,"process_m3u")); fclose(configfile);