Using “text2html()” to format “NoxReason”
This commit is contained in:
parent
9b79a0b4da
commit
695ea453ba
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ use function mysqli_real_escape_string as myesc;
|
|||
|
||||
require __DIR__.'/transiten.php';
|
||||
require __DIR__.'/grace.php';
|
||||
require __DIR__.'/text2html.php';
|
||||
|
||||
function tc($key) {
|
||||
global $english, $cols;
|
||||
|
@ -161,7 +162,7 @@ function dispinst(&$row,&$cols,&$link,&$dlang,&$account,$showcount,$finst,$cinst
|
|||
$out.='<tr><td class="tdattr">'.$attr.'</td><td>'.N;
|
||||
if ($row['Noxious']>0) {
|
||||
if (!is_null($row['NoxReason']) && preg_match('/^\s*$/',$row['NoxReason'])!==1) {
|
||||
$out.='<div class="baloored">'.t('Questa istanza è stata marcata come nociva in data '.gmdate('d/m/Y (H:i:s)',$row['NoxLastModTS']).' per questo motivo','This instance has been marked as noxious on '.gmdate('d/m/Y (H:i:s)',$row['NoxLastModTS']).' for this reason').': '.$row['NoxReason'].'</div>'.N;
|
||||
$out.='<div class="baloored"><p class="ptit">'.t('Questa istanza è stata marcata come nociva in data '.gmdate('d/m/Y (H:i:s)',$row['NoxLastModTS']).' per questo motivo','This instance has been marked as noxious on '.gmdate('d/m/Y (H:i:s)',$row['NoxLastModTS']).' for this reason').'</p>'.text2html($row['NoxReason'],'').'</div>'.N;
|
||||
} else {
|
||||
$out.='<div class="baloored">'.t('Questa istanza è marcata come nociva, ma il motivo non è specificato','This instance is marked as noxious, but the reason is not specified').'.</div>'.N;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue