Fix edit customer plan

This commit is contained in:
Ibnu Maksum
2024-06-20 14:02:36 +07:00
parent b9ff4399a4
commit 29ad9dec73
8 changed files with 77 additions and 67 deletions

View File

@ -127,11 +127,19 @@ class Lang
if(time()>strtotime($datetime)){
$when = Lang::T('ago');
}else{
$when = Lang::T('later');
$when = '';
}
if (!$full)
$string = array_slice($string, 0, 1);
return $string ? implode(', ', $string) .' '. $when : Lang::T('just now');
if($string){
if(empty($when)){
return '<b>'. implode(', ', $string) .'</b>';
}else{
return implode(', ', $string) .' '. $when;
}
}else{
return Lang::T('just now');
}
}
public static function nl2br($text)