This commit is contained in:
barisusakli
2015-09-11 23:57:46 -04:00
parent bf70f3764e
commit cb9b51e8a5
5 changed files with 32 additions and 8 deletions

View File

@@ -36,10 +36,13 @@ popularController.get = function(req, res, next) {
topics: topics,
'feeds:disableRSS': parseInt(meta.config['feeds:disableRSS'], 10) === 1,
rssFeedUrl: nconf.get('relative_path') + '/popular/' + (req.params.term || 'daily') + '.rss',
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[global:header.popular]]'}]),
title: '[[pages:popular-' + term + ']]'
};
if (req.path.startsWith('/api/popular') || req.path.startsWith('/popular')) {
data.breadcrumbs = helpers.buildBreadcrumbs([{text: '[[global:header.popular]]'}]);
}
if (!req.uid) {
anonCache[term] = data;
lastUpdateTime = Date.now();