filter:category.build_sidebars (custom sidebars in category view) is now deprecated

v1.18.x
psychobunny 11 years ago
parent eda7455be2
commit 1827c8390b

@ -124,13 +124,6 @@
</div>
</div>
<!-- ENDIF moderators.length -->
<!-- BEGIN sidebars -->
<div class="panel panel-default">
<div class="panel panel-default {sidebars.block_class}">{sidebars.header}</div>
<div class="panel-body">{sidebars.content}</div>
</div>
<!-- END sidebars -->
</div>
<!-- ENDIF topics.length -->
</div>

@ -71,12 +71,6 @@ var db = require('./database'),
Categories.getModerators(category_id, next);
}
function getSidebars(next) {
plugins.fireHook('filter:category.build_sidebars', [], function(err, sidebars) {
next(err, sidebars);
});
}
function getPageCount(next) {
Categories.getPageCount(category_id, current_user, next);
}
@ -86,7 +80,6 @@ var db = require('./database'),
'topics': getTopics,
'active_users': getActiveUsers,
'moderators': getModerators,
'sidebars': getSidebars,
'pageCount': getPageCount
}, function(err, results) {
if(err) {
@ -106,7 +99,6 @@ var db = require('./database'),
'nextStart': results.topics.nextStart,
'pageCount': results.pageCount,
'disableSocialButtons': meta.config.disableSocialButtons !== undefined ? parseInt(meta.config.disableSocialButtons, 10) !== 0 : false,
'sidebars': results.sidebars
};
callback(null, category);

Loading…
Cancel
Save