issue #1917 add parameter is_download to pwg.history.log

This commit is contained in:
plegall
2023-08-03 10:52:20 +02:00
parent da559de7aa
commit 7d73935323
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -622,7 +622,13 @@ function ws_history_log($params, &$service)
increase_image_visit_counter($params['image_id']);
}
pwg_log($params['image_id'], 'picture');
$image_type = 'picture';
if ($params['is_download'])
{
$image_type = 'high';
}
pwg_log($params['image_id'], $image_type);
}
/**
+1
View File
@@ -1315,6 +1315,7 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
'cat_id' => array('type'=>WS_TYPE_ID, 'default'=>null),
'section' => array('default'=>null),
'tags_string' => array('default'=>null),
'is_download' => array('default'=>false, 'type'=>WS_TYPE_BOOL),
),
'Log visit in history',
$ws_functions_root . 'pwg.php'