mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
userdetails add weeks
This commit is contained in:
+1
-1
@@ -326,7 +326,7 @@ if (get_setting('main.spsct') == 'yes') {
|
||||
<td class="rowhead"><?php echo $lang_getrss['row_sort']?>
|
||||
</td>
|
||||
<td class="rowfollow" align="left">
|
||||
<label><input type="radio" name="sort" value="sticky"><?php echo $lang_getrss['sort_sticky']?></label>
|
||||
<label><input type="radio" name="sort" value="sticky" checked><?php echo $lang_getrss['sort_sticky']?></label>
|
||||
<label><input type="radio" name="sort" value="newest"><?php echo $lang_getrss['sort_newest']?></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -32,10 +32,12 @@ $medalType = 'valid_medals';
|
||||
$userInfo = \App\Models\User::query()->with($medalType)->findOrFail($user['id']);
|
||||
$userRep = new \App\Repositories\UserRepository();
|
||||
|
||||
if ($user['added'] == "0000-00-00 00:00:00" || $user['added'] == null)
|
||||
$joindate = $lang_userdetails['text_not_available'];
|
||||
else
|
||||
$joindate = $user['added']." (" . gettime($user["added"], true, false, true).")";
|
||||
if ($user['added'] == "0000-00-00 00:00:00" || $user['added'] == null) {
|
||||
$joindate = $lang_userdetails['text_not_available'];
|
||||
} else {
|
||||
$weeks = $userInfo->added->diffInWeeks() . nexus_trans('nexus.time_units.week');
|
||||
$joindate = $user['added']." (" . gettime($user["added"], true, false, true).", $weeks)";
|
||||
}
|
||||
$lastseen = $user["last_access"];
|
||||
if ($lastseen == "0000-00-00 00:00:00" || $lastseen == null)
|
||||
$lastseen = $lang_userdetails['text_not_available'];
|
||||
|
||||
Reference in New Issue
Block a user