diff options
Diffstat (limited to 'mostviewedimages.php')
-rw-r--r-- | mostviewedimages.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mostviewedimages.php b/mostviewedimages.php index 9d2831bf7..66266f5e7 100644 --- a/mostviewedimages.php +++ b/mostviewedimages.php @@ -20,7 +20,7 @@ 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 + INNER JOIN " . $prefix . "annotations ann1 ON ann1.entity_guid = ent.guid AND ann1.owner_guid != ent.owner_guid INNER JOIN " . $prefix . "metastrings ms ON ms.id = ann1.name_id AND ms.string = 'tp_view' GROUP BY ent.guid @@ -33,8 +33,7 @@ foreach($result as $entity) { $entities[] = get_entity($entity->guid); } - - $title = "Most viewed images"; + $title = elgg_echo("tidypics:mostviewed"); $area2 = elgg_view_title($title); $area2 .= elgg_view_entity_list($entities, $max, 0, $max); $body = elgg_view_layout('two_column_left_sidebar', '', $area2); |