mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 12:19:57 +03:00
New: history logs high quality access via action.php. A new column
#history.is_high was added. Filter was added on administration history detail view. Modification: function get_sql_condition_FandF was slightly refactored for presentation improvement. git-svn-id: http://piwigo.org/svn/trunk@1817 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
58a359e3c1
commit
aabdb3e929
8 changed files with 340 additions and 37 deletions
|
@ -410,7 +410,7 @@ function replace_search( $string, $search )
|
|||
return $string;
|
||||
}
|
||||
|
||||
function pwg_log($image_id = null)
|
||||
function pwg_log($image_id = null, $is_high = false)
|
||||
{
|
||||
global $conf, $user, $page;
|
||||
|
||||
|
@ -468,6 +468,7 @@ INSERT INTO '.HISTORY_TABLE.'
|
|||
section,
|
||||
category_id,
|
||||
image_id,
|
||||
is_high,
|
||||
tag_ids
|
||||
)
|
||||
VALUES
|
||||
|
@ -483,6 +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($tags_string) ? "'".$tags_string."'" : 'NULL').'
|
||||
)
|
||||
;';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue