all your semi-colons are belongs to me

v1.18.x
psychobunny 10 years ago
parent f4b5090738
commit 729ed6fbda

@ -208,7 +208,7 @@ adminController.plugins.get = function(req, res, next) {
res.render('admin/extend/plugins' , { res.render('admin/extend/plugins' , {
plugins: plugins plugins: plugins
}); });
}) });
}; };
adminController.languages.get = function(req, res, next) { adminController.languages.get = function(req, res, next) {
@ -342,6 +342,6 @@ adminController.themes.get = function(req, res, next) {
return next(); return next();
} }
}); });
} };
module.exports = adminController; module.exports = adminController;

@ -43,7 +43,7 @@ module.exports = function(Meta) {
// Minor adjustments for API output // Minor adjustments for API output
configObj.type = 'local'; configObj.type = 'local';
if (configObj.screenshot) { if (configObj.screenshot) {
configObj.screenshot_url = nconf.get('relative_path') + '/css/previews/' + configObj.id configObj.screenshot_url = nconf.get('relative_path') + '/css/previews/' + configObj.id;
} else { } else {
configObj.screenshot_url = nconf.get('relative_path') + '/images/themes/default.png'; configObj.screenshot_url = nconf.get('relative_path') + '/images/themes/default.png';
} }

@ -91,7 +91,7 @@ Sockets.init = function(server) {
redisClient : client redisClient : client
}); });
} else if (nconf.get('cluster')) { } else if (nconf.get('cluster')) {
winston.warn('[socket.io] Clustering detected, you are advised to configure Redis as a websocket store.') winston.warn('[socket.io] Clustering detected, you are advised to configure Redis as a websocket store.');
} }
io = socketioWildcard(SocketIO).listen(server, config); io = socketioWildcard(SocketIO).listen(server, config);

@ -200,7 +200,7 @@ SocketUser.uploadProfileImageFromUrl = function(socket, url, callback) {
callback(err, image.url); callback(err, image.url);
}); });
}); });
} };
SocketUser.follow = function(socket, data, callback) { SocketUser.follow = function(socket, data, callback) {
if (!socket.uid || !data) { if (!socket.uid || !data) {

@ -49,5 +49,5 @@ module.exports = function(User) {
async.apply(db.delete, 'loginAttempts:' + uid), async.apply(db.delete, 'loginAttempts:' + uid),
async.apply(db.delete, 'lockout:' + uid) async.apply(db.delete, 'lockout:' + uid)
], callback); ], callback);
} };
}; };
Loading…
Cancel
Save