mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
random jshinting expedition
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var categoriesController = {},
|
||||
async = require('async'),
|
||||
qs = require('querystring'),
|
||||
@@ -154,7 +156,7 @@ categoriesController.get = function(req, res, next) {
|
||||
next(null, {
|
||||
header: null,
|
||||
topics: categoryData
|
||||
})
|
||||
});
|
||||
}
|
||||
], function (err, data) {
|
||||
if (err) {
|
||||
@@ -185,13 +187,6 @@ categoriesController.get = function(req, res, next) {
|
||||
}
|
||||
|
||||
res.render('category', data.topics);
|
||||
/*translator.translate(templates['noscript/category'].parse(data.topics), function(translatedHTML) {
|
||||
res.send(
|
||||
data.header +
|
||||
'\n\t<noscript>\n' + templates['noscript/header'] + translatedHTML + '\n\t</noscript>' +
|
||||
'\n\t' + app.create_route('category/' + category_url) + templates.footer
|
||||
);
|
||||
});*/
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user