diff --git a/public/templates/admin/categories.tpl b/public/templates/admin/categories.tpl index 8ab47e5ec1..483a481759 100644 --- a/public/templates/admin/categories.tpl +++ b/public/templates/admin/categories.tpl @@ -85,8 +85,8 @@
- - + +
diff --git a/src/routes/api.js b/src/routes/api.js index 85e74b71f2..9cf16efa40 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -55,7 +55,7 @@ var path = require('path'), }); function iterator(category, callback) { - categories.getRecentReplies(category.cid, parseInt(category.numRecentTopics, 10), function (err, posts) { + categories.getRecentReplies(category.cid, parseInt(category.numRecentReplies, 10), function (err, posts) { category.posts = posts; category.post_count = posts.length > 2 ? 2 : posts.length; // this was a hack to make metro work back in the day, post_count should just = length callback(null); diff --git a/src/upgrade.js b/src/upgrade.js index 48e8be2b08..f0228d96bc 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -145,14 +145,14 @@ Upgrade.upgrade = function(callback) { } for (var cid in cids) { - db.setObjectField('category:' + cids[cid], 'numRecentTopics', '2'); + db.setObjectField('category:' + cids[cid], 'numRecentReplies', '2'); } - winston.info('[2013/12/31] Added categories.numRecentTopics fields'); + winston.info('[2013/12/31] Added categories.numRecentReplies fields'); next(); }); } else { - winston.info('[2014/1/3] categories.numRecentTopics fields skipped'); + winston.info('[2014/1/3] categories.numRecentReplies fields skipped'); next(); } }