aboutsummaryrefslogtreecommitdiff
path: root/friendmostviewed.php
diff options
context:
space:
mode:
Diffstat (limited to 'friendmostviewed.php')
-rw-r--r--friendmostviewed.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/friendmostviewed.php b/friendmostviewed.php
index 300c3ccb5..901a8ff08 100644
--- a/friendmostviewed.php
+++ b/friendmostviewed.php
@@ -28,7 +28,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