mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
This commit is contained in:
@@ -430,14 +430,7 @@ else
|
||||
// don't increment if adding a comment
|
||||
if (trigger_change('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) )
|
||||
{
|
||||
// avoiding auto update of "lastmodified" field
|
||||
$query = '
|
||||
UPDATE
|
||||
'.IMAGES_TABLE.'
|
||||
SET hit = hit+1, lastmodified = lastmodified
|
||||
WHERE id = '.$page['image_id'].'
|
||||
;';
|
||||
pwg_query($query);
|
||||
increase_image_visit_counter($page['image_id']);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------- related categories
|
||||
|
||||
Reference in New Issue
Block a user