filter:category.get change #1527

This commit is contained in:
barisusakli
2014-11-08 14:21:53 -05:00
parent f3ea8d1cff
commit db979d7a20
2 changed files with 12 additions and 9 deletions

View File

@@ -105,7 +105,9 @@ var db = require('./database'),
category.isIgnored = results.isIgnored[0];
category.topic_row_size = 'col-md-9';
plugins.fireHook('filter:category.get', category, data.uid, callback);
plugins.fireHook('filter:category.get', {category: category, uid: data.uid}, function(err, data) {
callback(err, data ? data.category : null);
});
});
});
};