mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
This commit is contained in:
parent
978425527d
commit
382884836a
3 changed files with 29 additions and 8 deletions
|
@ -614,6 +614,14 @@ function ws_history_log($params, &$service)
|
|||
$page['tag_ids'] = explode(',', $params['tags_string']);
|
||||
}
|
||||
|
||||
// when visiting a photo (which is currently, in version 14, the only event registered
|
||||
// by pwg.history.log) we should also increment images.hit
|
||||
if (!empty($params['image_id']))
|
||||
{
|
||||
include_once(PHPWG_ROOT_PATH.'include/functions_picture.inc.php');
|
||||
increase_image_visit_counter($params['image_id']);
|
||||
}
|
||||
|
||||
pwg_log($params['image_id'], 'picture');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue