rename dbset to set

This commit is contained in:
pichalite
2016-07-16 00:08:53 +00:00
parent f72e00a1b5
commit 6249b9a6fb
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ define('forum/recent', ['forum/infinitescroll', 'components'], function(infinite
infinitescroll.loadMore('topics.loadMoreFromSet', {
after: $('[component="category"]').attr('data-nextstart'),
set: $('[component="category"]').attr('data-dbset') ? $('[component="category"]').attr('data-dbset') : 'topics:recent'
set: $('[component="category"]').attr('data-set') ? $('[component="category"]').attr('data-set') : 'topics:recent'
}, function(data, done) {
if (data.topics && data.topics.length) {
Recent.onTopicsLoaded('recent', data.topics, false, done);

View File

@@ -54,7 +54,7 @@ recentController.get = function(req, res, next) {
var data = {};
data.topics = topics;
data.nextStart = stop + 1;
data.dbSet = 'topics:recent';
data.set = 'topics:recent';
data['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
data.rssFeedUrl = nconf.get('relative_path') + '/recent.rss';
data.title = '[[pages:recent]]';