From bf1e40afcf8da4ea6e9d663531dfe3bc934483dc Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 11 Aug 2008 10:18:29 +0000 Subject: Added a search submenu. git-svn-id: https://code.elgg.org/elgg/trunk@1819 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib/users.php') diff --git a/engine/lib/users.php b/engine/lib/users.php index 80e9286fb..4939cc7fb 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1161,6 +1161,8 @@ extend_elgg_settings_page('user/settings/language', 'usersettings/user', 1); //register_action("user/language"); + // Register the user type + register_entity_type('user',''); register_plugin_hook('usersettings:save','user','users_settings_save'); register_plugin_hook('search','all','search_list_users_by_name'); @@ -1176,7 +1178,9 @@ // Change this to set the number of users that display on the search page $threshold = 4; - if (!get_input('offset')) + $object = get_input('object'); + + if (!get_input('offset') && (empty($object) || $object == 'user')) if ($users = search_for_user($tag,$threshold)) { $countusers = search_for_user($tag,0,0,"",true); -- cgit v1.2.3