v1.18.x
Baris Soner Usakli 12 years ago
parent f08067bab2
commit 9de5214a2f

@ -102,7 +102,7 @@ var nodebb_admin = (function(nodebb_admin) {
alert_id: 'config_status', alert_id: 'config_status',
timeout: 2500, timeout: 2500,
title: 'Changes Saved', title: 'Changes Saved',
message: 'Your changes to the NodeBB configuration have been saved. You may have to restart NodeBB to see the changes.', message: 'Your changes to the NodeBB configuration have been saved.',
type: 'success' type: 'success'
}); });
} else { } else {

@ -39,6 +39,8 @@ var utils = require('./../public/src/utils.js'),
set: function (field, value, callback) { set: function (field, value, callback) {
RDB.hset('config', field, value, function (err, res) { RDB.hset('config', field, value, function (err, res) {
if (callback) { if (callback) {
if(!err)
Meta.config[field] = value;
callback(err, res); callback(err, res);
} }
}); });

Loading…
Cancel
Save