aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:35:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:35:58 +0000
commitfe113218b2b82338f6294cd2f2ba6a11d4bdf6a1 (patch)
tree62c46a9e29666e8d79e18672c868c7759461e4f1 /mod/sitepages
parentbf39908f4d587785a197de80b528e73c43ce99d9 (diff)
downloadelgg-fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1.tar.gz
elgg-fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1.tar.bz2
removed uses of $vars[config] in views
git-svn-id: http://code.elgg.org/elgg/trunk@8004 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages')
-rw-r--r--mod/sitepages/views/default/sitepages/keywords/userlist.php4
1 files changed, 3 insertions, 1 deletions
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;