issue #916 and issue #1917 increment images.hit when calling pwg.history.log

This commit is contained in:
plegall
2023-07-10 14:49:36 +02:00
parent 978425527d
commit 382884836a
3 changed files with 29 additions and 8 deletions

View File

@@ -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