do not notify about restored logs
This commit is contained in:
@ -58,7 +58,8 @@
|
||||
INNER JOIN `user` AS `cacheloguser` ON `cache_logs`.`user_id`=`cacheloguser`.`user_id`
|
||||
INNER JOIN `countries` ON `caches`.`country`=`countries`.`short`
|
||||
LEFT JOIN `sys_trans_text` ON `countries`.`trans_id`=`sys_trans_text`.`trans_id` AND `sys_trans_text`.`lang`='&1'
|
||||
WHERE `username`<>'&2'
|
||||
LEFT JOIN `cache_logs_restored` ON `cache_logs_restored`.`id`=`cache_logs`.`id`
|
||||
WHERE `username`<>'&2' AND IFNULL(`cache_logs_restored`.`restored_by`,0)=0
|
||||
ORDER BY " . $sqlOrderBy . "`cache_logs`.`date_created` DESC",
|
||||
$opt['template']['locale'],
|
||||
isset($_GET['showsyslogs']) ? '' : $opt['logic']['systemuser']['user']);
|
||||
|
@ -772,6 +772,8 @@ function restore_listings($cacheids, $rdate, $roptions, $simulate)
|
||||
(`id`, `date_modified`, `cache_id`, `original_id`, `restored_by`)
|
||||
VALUES ('&1', NOW(), '&2', '&3', '&4')",
|
||||
$log->getLogId(), $log->getCacheId(), $revert_logid, $login->userid);
|
||||
sql("DELETE FROM `watches_logqueue` WHERE `log_id`='&1'", $log->getLogId());
|
||||
// watches_logqueue entry was created by trigger
|
||||
$logs_processed[] = $log->getLogId();
|
||||
|
||||
/* no longer needed after implementing picture deletion in removelog.php
|
||||
|
Reference in New Issue
Block a user