mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
up themes, 404 non existing popular pages
This commit is contained in:
@@ -13,13 +13,17 @@ var anonCache = {}, lastUpdateTime = 0;
|
||||
var terms = {
|
||||
daily: 'day',
|
||||
weekly: 'week',
|
||||
monthly: 'month',
|
||||
alltime: 'alltime'
|
||||
monthly: 'month'
|
||||
};
|
||||
|
||||
popularController.get = function(req, res, next) {
|
||||
|
||||
var term = terms[req.params.term] || 'alltime';
|
||||
var term = terms[req.params.term];
|
||||
|
||||
if (!term && req.params.term) {
|
||||
return next();
|
||||
}
|
||||
term = term || 'alltime';
|
||||
|
||||
var termToBreadcrumb = {
|
||||
day: '[[recent:day]]',
|
||||
|
||||
Reference in New Issue
Block a user