diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-06-30 01:40:19 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-06-30 01:40:19 +0000 |
commit | 182a8f45dba58d6152034c496059cf21393bbbb8 (patch) | |
tree | 83eb508b150fd5d5e01ac2788028854c78b22bca /picture.php | |
parent | 12af0a00794d4624c4804eeef74fd207f474b002 (diff) |
- 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
Diffstat (limited to '')
-rw-r--r-- | picture.php | 8 |
1 files changed, 5 insertions, 3 deletions
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 |