mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
closes #5717
This commit is contained in:
@@ -65,12 +65,12 @@ helpers.buildCategoryBreadcrumbs = function (cid, callback) {
|
||||
async.whilst(function () {
|
||||
return parseInt(cid, 10);
|
||||
}, function (next) {
|
||||
categories.getCategoryFields(cid, ['name', 'slug', 'parentCid', 'disabled'], function (err, data) {
|
||||
categories.getCategoryFields(cid, ['name', 'slug', 'parentCid', 'disabled', 'isSection'], function (err, data) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
if (!parseInt(data.disabled, 10)) {
|
||||
if (!parseInt(data.disabled, 10) && !parseInt(data.isSection, 10)) {
|
||||
breadcrumbs.unshift({
|
||||
text: validator.escape(String(data.name)),
|
||||
url: nconf.get('relative_path') + '/category/' + data.slug,
|
||||
|
||||
Reference in New Issue
Block a user