mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-09 05:33:05 +02:00
closes #353
This commit is contained in:
@@ -102,7 +102,7 @@ var nodebb_admin = (function(nodebb_admin) {
|
||||
alert_id: 'config_status',
|
||||
timeout: 2500,
|
||||
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'
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -39,6 +39,8 @@ var utils = require('./../public/src/utils.js'),
|
||||
set: function (field, value, callback) {
|
||||
RDB.hset('config', field, value, function (err, res) {
|
||||
if (callback) {
|
||||
if(!err)
|
||||
Meta.config[field] = value;
|
||||
callback(err, res);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user