From fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 12:35:58 +0000 Subject: removed uses of $vars[config] in views git-svn-id: http://code.elgg.org/elgg/trunk@8004 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/sitepages/views/default/sitepages/keywords/userlist.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/sitepages/views') diff --git a/mod/sitepages/views/default/sitepages/keywords/userlist.php b/mod/sitepages/views/default/sitepages/keywords/userlist.php index 231fc7b1c..64c3d82ac 100644 --- a/mod/sitepages/views/default/sitepages/keywords/userlist.php +++ b/mod/sitepages/views/default/sitepages/keywords/userlist.php @@ -5,6 +5,8 @@ * @package SitePages */ +$db_prefix = elgg_get_config('dbprefix'); + $only_with_avatars = (isset($vars['only_with_avatars'])) ? $vars['only_with_avatars'] : TRUE; $list_type = (isset($vars['list_type'])) ? $vars['list_type'] : 'new'; $limit = (isset($vars['limit'])) ? $vars['limit'] : 10; @@ -26,7 +28,7 @@ switch ($list_type) { case 'online': // show people with a last action of < 10 minutes. $last_action = time() - 10 * 60; - $options['joins'] = array("JOIN {$vars['config']->dbprefix}users_entity ue on ue.guid = e.guid"); + $options['joins'] = array("JOIN {$db_prefix}users_entity ue on ue.guid = e.guid"); $options['wheres'] = array("ue.last_action > $last_action"); break; -- cgit v1.2.3