From 0828caab32ccdf638c76c1172bef0a7b62b86bc3 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 27 Jan 2015 16:51:48 -0500 Subject: [PATCH] renamed to filter:userlist.get --- src/controllers/users.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/users.js b/src/controllers/users.js index 40f0f1f8bd..7c48efeae8 100644 --- a/src/controllers/users.js +++ b/src/controllers/users.js @@ -44,7 +44,7 @@ usersController.getOnlineUsers = function(req, res, next) { show_anon: anonymousUserCount ? '' : 'hide' }; - plugins.fireHook('filter:users.get', {data: userData, uid: uid}, function(err, userData) { + plugins.fireHook('filter:userlist.get', {data: userData, uid: uid}, function(err, userData) { res.render('users', userData); }); }); @@ -76,7 +76,7 @@ usersController.getUsers = function(set, count, req, res, next) { show_anon: 'hide' }; - plugins.fireHook('filter:users.get', {data: userData, uid: uid}, function(err, userData) { + plugins.fireHook('filter:userlist.get', {data: userData, uid: uid}, function(err, userData) { res.render('users', userData); }); }); @@ -105,7 +105,7 @@ function getUsersAndCount(set, count, callback) { usersController.getUsersForSearch = function(req, res, next) { var resultsPerPage = parseInt(meta.config.userSearchResultsPerPage, 10) || 20, uid = req.user ? req.user.uid : 0; - + getUsersAndCount('users:joindate', resultsPerPage, function(err, data) { if (err) { return next(err); @@ -118,7 +118,7 @@ usersController.getUsersForSearch = function(req, res, next) { show_anon: 'hide' }; - plugins.fireHook('filter:users.get', {data: userData, uid: uid}, function(err, userData) { + plugins.fireHook('filter:userlist.get', {data: userData, uid: uid}, function(err, userData) { res.render('users', userData); }); });