do not notify about restored logs

This commit is contained in:
following
2013-06-05 11:48:34 +02:00
parent 4e9a59ba5a
commit 4ba77df562
2 changed files with 4 additions and 1 deletions

View File

@ -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']);

View File

@ -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