making RDB available to plugins without require

v1.18.x
Julian Lam 12 years ago
parent 555eddff83
commit 7cbb01a78a

@ -70,7 +70,6 @@ if(nconf.get('upgrade')) {
} }
var categories = require('./src/categories.js'), var categories = require('./src/categories.js'),
RDB = require('./src/redis.js'),
templates = require('./public/src/templates.js'), templates = require('./public/src/templates.js'),
webserver = require('./src/webserver.js'), webserver = require('./src/webserver.js'),
websockets = require('./src/websockets.js'), websockets = require('./src/websockets.js'),
@ -80,6 +79,7 @@ if(nconf.get('upgrade')) {
}; };
DEVELOPMENT = true; DEVELOPMENT = true;
RDB = require('./src/redis.js');
global.configuration = {}; global.configuration = {};
global.templates = {}; global.templates = {};

Loading…
Cancel
Save