mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
up themes, 404 non existing popular pages
This commit is contained in:
@@ -49,8 +49,8 @@
|
||||
"nodebb-plugin-spam-be-gone": "0.4.2",
|
||||
"nodebb-rewards-essentials": "0.0.5",
|
||||
"nodebb-theme-lavender": "2.0.1",
|
||||
"nodebb-theme-persona": "3.0.12",
|
||||
"nodebb-theme-vanilla": "4.0.7",
|
||||
"nodebb-theme-persona": "3.0.13",
|
||||
"nodebb-theme-vanilla": "4.0.8",
|
||||
"nodebb-widget-essentials": "2.0.1",
|
||||
"npm": "^2.1.4",
|
||||
"passport": "^0.3.0",
|
||||
|
||||
@@ -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