aboutsummaryrefslogtreecommitdiff
path: root/yourmostviewed.php
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-05-18 12:57:59 +0000
committerGreg Froese <greg.froese@gmail.com>2009-05-18 12:57:59 +0000
commit70ad5de3a1d4fffc8b3d97c301194bb0258b4c68 (patch)
tree765e5d8b7081fd3373df0fb89d33a237a0239fce /yourmostviewed.php
parentdd81b02a85596a913c4a42fba655766b61334eb1 (diff)
downloadelgg-70ad5de3a1d4fffc8b3d97c301194bb0258b4c68.tar.gz
elgg-70ad5de3a1d4fffc8b3d97c301194bb0258b4c68.tar.bz2
fixed watermarking after code re-org and added most recently viewed option
Diffstat (limited to 'yourmostviewed.php')
-rw-r--r--yourmostviewed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/yourmostviewed.php b/yourmostviewed.php
index 84cc2ca10..18936bd69 100644
--- a/yourmostviewed.php
+++ b/yourmostviewed.php
@@ -15,7 +15,7 @@
$max = 24;
$sql = "SELECT ent.guid, count( * ) AS views
- FROM `my_elggentities` ent
+ FROM " . $prefix . "entities ent
INNER JOIN " . $prefix . "entity_subtypes sub ON ent.subtype = sub.id
AND sub.subtype = 'image'
INNER JOIN " . $prefix . "annotations ann1 ON ann1.entity_guid = ent.guid