Skip to content

Node.js based forum software built for the modern web

Merge branch 'master' of https://github.com/designcreateplay/NodeBB

Baris Usaklieb1c1c78d49f
diff --cc app.js
index e1391e432b,343431e527..7a6f68dc7a
--- a/app.js
+++ b/app.js
@@@ -81,14 -81,17 +81,20 @@@
};
var templates = require('./public/src/templates.js'),
+ translator = require('./public/src/translator.js'),
webserver = require('./src/webserver.js'),
+ SocketIO = require('socket.io').listen(global.server, { log: false, transports: ['websocket', 'xhr-polling', 'jsonp-polling', 'flashsocket']}),
websockets = require('./src/websockets.js'),
plugins = require('./src/plugins'); // Don't remove this - plugins initializes itself
+ websockets.init(SocketIO);
+
global.templates = {};
+ global.translator = translator;
+
+ translator.loadServer();
+
+ // todo: replace below with read directory code, derp.
templates.init([
'header', 'footer', 'logout', 'outgoing', 'admin/header', 'admin/footer', 'admin/index',
'emails/reset', 'emails/reset_plaintext', 'emails/email_confirm', 'emails/email_confirm_plaintext',