aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-07-01 01:00:52 +0000
committerCash Costello <cash.costello@gmail.com>2009-07-01 01:00:52 +0000
commitfd36c38f04f775f34734f88ece2d23466d7715bb (patch)
treee8175c16f1a089f23e47f0da3995c1f80d86923c /views/default/object
parentd1e02e6aa2f75a311c46a465bc044211edb36ed9 (diff)
downloadelgg-fd36c38f04f775f34734f88ece2d23466d7715bb.tar.gz
elgg-fd36c38f04f775f34734f88ece2d23466d7715bb.tar.bz2
If everything works out, this should be Tidypics 1.6.0 Beta 1 - note I pulled back support for ImageMagick command line and watermarks. It would lead to too many support questions from the general public and I already expect to be inundated.
Diffstat (limited to 'views/default/object')
-rw-r--r--views/default/object/image.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index e38576abf..ba3bb0272 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -126,7 +126,9 @@ if ($photo_tags) {
$the_viewer = 0;
}
- create_annotation($file_guid, "tp_view", "1", "integer", $the_viewer, ACCESS_PUBLIC);
+ // only non-owner views count
+ if ($owner->guid != $view->owner_guid)
+ create_annotation($file_guid, "tp_view", "1", "integer", $the_viewer, ACCESS_PUBLIC);
$views_a = get_annotations($file_guid, "object", "image", "tp_view", "", 0, 9999);
$views = count($views_a);