“New” is now based on “InsertTS”
This commit is contained in:
parent
bee3a04b19
commit
d07b5e4efd
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,9 @@ $debug.='REQUEST_URI: '.$_SERVER['REQUEST_URI'].N;
|
|||
$debug.='$_GET: '.print_r($_GET,1);
|
||||
$debug.='LOCALE: '.$locale.N;
|
||||
|
||||
// an instance is displayed as "New" if its age, relative to the InsertTS field, is less or equal than this (currently 31 days)
|
||||
$oldline=31*24*60*60;
|
||||
|
||||
if (array_key_exists('id',$_GET) && preg_match('/^\d+$/',$_GET['id'])) {
|
||||
$_GET['id']+=0;
|
||||
$single=true;
|
||||
|
@ -539,7 +542,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
|
|||
($row['Noxious']==1) ? $out.='<span class="ibad">'._('Yes (see why below)').'</span>' : $out.='<span class="igood">'._('No').'</span>';
|
||||
$out.='</div>'.N;
|
||||
$out.='<div><span class="ilab">'._('New').'</span> ';
|
||||
($row['New']==1) ? $out.='<span class="ivgood">'._('Yes!').'</span>' : $out.=_('No');
|
||||
($bt-$row['InsertTS']<=$oldline) ? $out.='<span class="ivgood">'._('Yes!').'</span>' : $out.=_('No');
|
||||
$out.='</div>'.N;
|
||||
$out.='<div><span class="ilab">'._('Software').'</span> '.nully(hspech(ucfirst($row['Software']))).' '.nully(hspech($row['Version'])).'</div>'.N;
|
||||
|
||||
|
|
Loading…
Reference in a new issue