From 182a8f45dba58d6152034c496059cf21393bbbb8 Mon Sep 17 00:00:00 2001 From: rvelices Date: Sat, 30 Jun 2007 01:40:19 +0000 Subject: - fix help files - feature 695 added action loc_user_profile_updated in profile.php - added event allow_increment_element_hit_count in picture.php git-svn-id: http://piwigo.org/svn/trunk@2048 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index cc43eab95..50e06bc33 100644 --- a/picture.php +++ b/picture.php @@ -241,14 +241,16 @@ DELETE FROM '.COMMENTS_TABLE.' } // incrementation of the number of hits, we do this only if no action -$query = ' +if (trigger_event('allow_increment_element_hit_count', true) ) +{ + $query = ' UPDATE '.IMAGES_TABLE.' SET hit = hit+1 WHERE id = '.$page['image_id'].' ;'; -pwg_query($query); - + pwg_query($query); +} //---------------------------------------------------------- related categories $query = ' SELECT category_id,uppercats,commentable,global_rank -- cgit v1.2.3