- 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
This commit is contained in:
parent
12af0a0079
commit
182a8f45db
4 changed files with 15 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue