mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
New: non picture files are now logged in history when downloaded. The
history filter was redesigned: #history.is_high replaced by #history.image_type = high. The filter is simpler. git-svn-id: http://piwigo.org/svn/trunk@1844 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -410,7 +410,7 @@ function replace_search( $string, $search )
|
||||
return $string;
|
||||
}
|
||||
|
||||
function pwg_log($image_id = null, $is_high = false)
|
||||
function pwg_log($image_id = null, $image_type = null)
|
||||
{
|
||||
global $conf, $user, $page;
|
||||
|
||||
@@ -468,7 +468,7 @@ INSERT INTO '.HISTORY_TABLE.'
|
||||
section,
|
||||
category_id,
|
||||
image_id,
|
||||
is_high,
|
||||
image_type,
|
||||
tag_ids
|
||||
)
|
||||
VALUES
|
||||
@@ -484,7 +484,7 @@ INSERT INTO '.HISTORY_TABLE.'
|
||||
'.(isset($page['section']) ? "'".$page['section']."'" : 'NULL').',
|
||||
'.(isset($page['category']) ? $page['category'] : 'NULL').',
|
||||
'.(isset($image_id) ? $image_id : 'NULL').',
|
||||
'.(isset($image_id) ? "'".boolean_to_string($is_high)."'" : 'NULL').',
|
||||
'.(isset($image_id) ? "'".$image_type."'" : 'NULL').',
|
||||
'.(isset($tags_string) ? "'".$tags_string."'" : 'NULL').'
|
||||
)
|
||||
;';
|
||||
|
||||
Reference in New Issue
Block a user