Corrected mistake in the general config sending routine in extjs.c
This commit is contained in:
parent
741612ccf9
commit
d530f9e8a1
1 changed files with 3 additions and 3 deletions
|
@ -1726,10 +1726,10 @@ extjs_config(http_connection_t *hc, const char *remain, void *opaque)
|
|||
/* Basic settings (not the advanced schedule) */
|
||||
if(!strcmp(op, "loadSettings")) {
|
||||
pthread_mutex_lock(&global_lock);
|
||||
out = htsmsg_create_map();
|
||||
if ((m = config_get_all()))
|
||||
htsmsg_add_msg(out, "config", m);
|
||||
m = config_get_all();
|
||||
pthread_mutex_unlock(&global_lock);
|
||||
if (!m) return HTTP_STATUS_BAD_REQUEST;
|
||||
out = json_single_record(m, "config");
|
||||
|
||||
/* Save settings */
|
||||
} else if (!strcmp(op, "saveSettings") ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue