store teletext rundown

This commit is contained in:
Andreas Öman 2007-12-07 09:16:05 +00:00
parent 508905cd94
commit 74ffb3af8f
2 changed files with 3 additions and 1 deletions

View file

@ -407,7 +407,7 @@ channel_settings_write(void)
fprintf(fp, "\tchannel {\n"
"\t\tname = %s\n", ch->ch_name);
if(ch->ch_teletext_rundown)
fprintf(fp, "\t\tteletext-rundown = %d", ch->ch_teletext_rundown);
fprintf(fp, "\t\tteletext-rundown = %d\n", ch->ch_teletext_rundown);
fprintf(fp, "\t}\n");
}
fprintf(fp, "}\n");

View file

@ -1597,6 +1597,8 @@ page_updatechannel(http_connection_t *hc, const char *remain, void *opaque)
}
}
channel_settings_write();
snprintf(buf, sizeof(buf), "/editchannel/%d", ch->ch_tag);
http_redirect(hc, buf);
return 0;