Users: Allow the viewing of a user's win-loss record

PR for https://www.smogon.com/forums/threads/allow-the-viewing-of-a-users-win-loss-record-via-their-userpage.3736730/
This commit is contained in:
Distrib 2024-03-10 15:00:52 +01:00 committed by GitHub
parent 6796b18acd
commit 81e2fa165c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -513,14 +513,8 @@ if (!$user) {
<th width="55" style="text-align:center"><abbr title="Elo rating">Elo</abbr></th>
<th width="50" style="text-align:center"><abbr title="user's percentage chance of winning a random battle (aka GLIXARE)">GXE</abbr></th>
<th width="80" style="text-align:center"><abbr title="Glicko-1 rating: rating&#177;deviation">Glicko-1</abbr></th>
<?php
if ($user['userid'] === $curuser['userid']) {
?>
<th width="20" style="text-align:center"><abbr title="Wins">W</abbr></th>
<th width="20" style="text-align:center"><abbr title="Losses">L</abbr></th>
<?php
}
?>
</tr>
<?php
echo $bufs['official'];
@ -532,14 +526,8 @@ if (!$user) {
<th width="55" style="text-align:center"><abbr title="Elo rating">Elo</abbr></th>
<th width="50" style="text-align:center"><abbr title="user's percentage chance of winning a random battle (aka GLIXARE)">GXE</abbr></th>
<th width="80" style="text-align:center"><abbr title="Glicko-1 rating: rating&#177;deviation">Glicko-1</abbr></th>
<?php
if ($user['userid'] === $curuser['userid']) {
?>
<th width="20" style="text-align:center"><abbr title="Wins">W</abbr></th>
<th width="20" style="text-align:center"><abbr title="Losses">L</abbr></th>
<?php
}
?>
</tr>
<?php
echo $bufs['unofficial'];