Changeset 28184 for trunk/picture.php
- Timestamp:
- Apr 14, 2014, 11:38:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r27867 r28184 418 418 419 419 //---------- incrementation of the number of hits 420 $inc_hit_count = !isset($_POST['content']); 420 421 // don't increment counter if in the Mozilla Firefox prefetch 421 422 if (isset($_SERVER['HTTP_X_MOZ']) and $_SERVER['HTTP_X_MOZ'] == 'prefetch') 422 423 { 423 add_event_handler('allow_increment_element_hit_count', create_function('$b', 'return false;'));424 $inc_hit_count = false; 424 425 } 425 426 else … … 428 429 if (pwg_get_session_var('referer_image_id',0) == $page['image_id']) 429 430 { 430 add_event_handler('allow_increment_element_hit_count', create_function('$b', 'return false;'));431 $inc_hit_count = false; 431 432 } 432 433 pwg_set_session_var('referer_image_id', $page['image_id']); … … 434 435 435 436 // don't increment if adding a comment 436 if (trigger_event('allow_increment_element_hit_count', !isset($_POST['content'])) )437 if (trigger_event('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) ) 437 438 { 438 439 $query = '
Note: See TracChangeset
for help on using the changeset viewer.