Changeset 28640 for trunk


Ignore:
Timestamp:
Jun 5, 2014, 9:25:28 AM (10 years ago)
Author:
mistic100
Message:

don't update images.lastmodified field when incrementing hits count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r28587 r28640  
    437437if (trigger_change('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) )
    438438{
     439  // avoiding auto update of "lastmodified" field
    439440  $query = '
    440441UPDATE
    441442  '.IMAGES_TABLE.'
    442   SET hit = hit+1
     443  SET hit = hit+1, lastmodified = lastmodified
    443444  WHERE id = '.$page['image_id'].'
    444445;';
Note: See TracChangeset for help on using the changeset viewer.