aboutsummaryrefslogtreecommitdiff
path: root/friendmostrecent.php
diff options
context:
space:
mode:
Diffstat (limited to 'friendmostrecent.php')
-rw-r--r--friendmostrecent.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/friendmostrecent.php b/friendmostrecent.php
index 9c6eb8ed0..10d99251a 100644
--- a/friendmostrecent.php
+++ b/friendmostrecent.php
@@ -19,7 +19,8 @@
}
$user = get_user_by_username($friendname);
- $prefix = "my_elgg"; //how do you get the global default?
+ global $CONFIG;
+ $prefix = $CONFIG->dbprefix;
$max = 24;
//grab the top views (metadata 'tp_views') for $max number of entities
//ignores entity subtypes