Skip to content
Permalink
Browse files

added NM and LO logs to 'needs_maintenance' new logs view

  • Loading branch information...
following5 committed Mar 8, 2016
1 parent c3ce610 commit 1f37893f0b916d98e52da0673de8ba242df59545
Showing with 4 additions and 2 deletions.
  1. +4 −2 htdocs/newlogs.php
@@ -102,7 +102,7 @@
if (isset($_GET['for_maintenance']))
{
$add_where = "AND {fromtable}.`type` IN (2,3) AND DATEDIFF({fromtable}.`date_created`, {fromtable}.`date`) < 7 ";
$add_where = "AND ({fromtable}.`type` IN (2,3) OR {fromtable}.`needs_maintenance`=2 OR {fromtable}.`listing_outdated`=2) AND DATEDIFF({fromtable}.`date_created`, {fromtable}.`date`) < 7 ";
$tpl->cache_id .= "|fm";
$logcount *= 2;
}
@@ -124,7 +124,9 @@
sql_temp_table_slave('loglist0');
sql_slave("
CREATE TEMPORARY TABLE &loglist0
(SELECT `id`, `cache_id`, `user_id`, `date_created`, `date`, `type`
(SELECT
`id`, `cache_id`, `user_id`, `date_created`, `date`, `type`,
`needs_maintenance`, `listing_outdated`
FROM `cache_logs`
ORDER BY `date_created` DESC
LIMIT " . (4*$logcount) . "

0 comments on commit 1f37893

Please sign in to comment.
You can’t perform that action at this time.