Skip to content

Commit

Permalink
character list updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Sep 5, 2024
1 parent b3248df commit 04f26cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions system/pages/characters.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function retrieve_former_name($name)
$query = $db->query('SELECT `id` FROM `players` WHERE `account_id` = ' . $account->getId() . ' ORDER BY `name`')->fetchAll();
foreach ($query as $p) {
$_player = new OTS_Player();
$fields = array('id', 'name', 'vocation', 'level', 'online', 'deleted', 'hidden');
$fields = array('id', 'name', 'vocation', 'level', 'online', 'deleted', 'hidden', 'world_id');
$_player->load($p['id'], $fields, false);
if ($_player->isLoaded() && !$_player->isHidden()) {
$account_players[] = $_player;
Expand Down Expand Up @@ -534,7 +534,7 @@ public static function getExpForLevel($lv)
'hidden' => $hidden,
'bannedUntil' => isset($bannedUntil) ? $bannedUntil : null,
'characters_link' => getLink('characters'),
'account_players' => isset($account_players) ? $account_players : null,
'account_players' => $account_players ?? null,
'search_form' => generate_search_form(),
'canEdit' => hasFlag(FLAG_CONTENT_PLAYERS) || superAdmin(),
'vip_enabled' => isVipSystemEnabled()
Expand Down
6 changes: 3 additions & 3 deletions system/templates/characters.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -1023,11 +1023,11 @@
<tbody>
<tr bgcolor="{{ config.darkborder }}">
<td width="30%"><B>Name</b></td>
<td width="20%"><B>World</b></td>
<td width="15%"><B>Level</b></td>
<td width="23%"><B>World</b></td>
<td width="12%"><B>Level</b></td>
<td width="20%"><B>Vocation</b></td>
<td width="15%"><b>Status</b></td>
<td><b>&#160;</b></td>
<td></td>
</tr>
{% set i = 0 %}
{% for player in account_players %}
Expand Down

0 comments on commit 04f26cb

Please sign in to comment.