diff options
author | Greg Froese <greg.froese@gmail.com> | 2009-05-12 02:50:55 +0000 |
---|---|---|
committer | Greg Froese <greg.froese@gmail.com> | 2009-05-12 02:50:55 +0000 |
commit | a8f616e81ba48583540d65102471644547e64af8 (patch) | |
tree | 4e4a70bb953927c3a625f50bccfeae09e4255e2b /friendmostviewed.php | |
parent | a5311a04c7a1b4deb6904a3f781c43bcbceca782 (diff) | |
download | elgg-a8f616e81ba48583540d65102471644547e64af8.tar.gz elgg-a8f616e81ba48583540d65102471644547e64af8.tar.bz2 |
used proper dbprefix
Diffstat (limited to 'friendmostviewed.php')
-rw-r--r-- | friendmostviewed.php | 3 |
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 |