From 1827c8390b5bf1642914cf33507ee935b77377a8 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 19 Feb 2014 18:19:25 -0500 Subject: [PATCH] filter:category.build_sidebars (custom sidebars in category view) is now deprecated --- public/templates/category.tpl | 7 ------- src/categories.js | 8 -------- 2 files changed, 15 deletions(-) diff --git a/public/templates/category.tpl b/public/templates/category.tpl index 440cf48a09..56ed2766df 100644 --- a/public/templates/category.tpl +++ b/public/templates/category.tpl @@ -124,13 +124,6 @@ - - -
-
{sidebars.header}
-
{sidebars.content}
-
- diff --git a/src/categories.js b/src/categories.js index 640122598d..dbafd55c4d 100644 --- a/src/categories.js +++ b/src/categories.js @@ -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);