mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* important fix for servers with promotion column (#36)
* caused player.vocation to be resetted when saving player, for example: on change name, accept invite to guild, leave guild * fixed empty success message on leave guild * (internal) using $player->getVocationName() where possible instead of older method * fixed some warning in guild show
This commit is contained in:
@@ -63,10 +63,7 @@ foreach($posts as &$post)
|
||||
$post['group'] = $groupName;
|
||||
$post['player_link'] = getPlayerLink($player->getName());
|
||||
|
||||
$post['vocation'] = 'Unknown';
|
||||
if(isset($config['vocations'][$player->getVocation()])) {
|
||||
$post['vocation'] = $config['vocations'][$player->getVocation()];
|
||||
}
|
||||
$post['vocation'] = $player->getVocationName();
|
||||
|
||||
$rank = $player->getRank();
|
||||
if($rank->isLoaded())
|
||||
|
Reference in New Issue
Block a user