mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-18 12:16:24 +01:00
Merge branch 'main' into develop
This commit is contained in:
@@ -51,6 +51,8 @@ if($player_name != null) {
|
||||
'description' => 'The character information has been changed.'
|
||||
));
|
||||
$show_form = false;
|
||||
|
||||
$hooks->trigger(HOOK_ACCOUNT_CHARACTERS_CHANGE_COMMENT_AFTER_SUCCESS, ['player' => $player]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -70,9 +72,11 @@ if($show_form) {
|
||||
}
|
||||
|
||||
if(isset($player) && $player) {
|
||||
$twig->display('account.characters.change-comment.html.twig', array(
|
||||
'player' => $player->toArray()
|
||||
));
|
||||
$_player = $player->toArray();
|
||||
$_player['id'] = $player->id; // Hack, as it's somehow missing in the toArray() function
|
||||
|
||||
$twig->display('account.characters.change-comment.html.twig', [
|
||||
'player' => $_player,
|
||||
]);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -70,7 +70,7 @@ foreach($posts as &$post) {
|
||||
}
|
||||
|
||||
$post['group'] = $groupName;
|
||||
$post['player_link'] = getPlayerLink($player->getName());
|
||||
$post['player_link'] = '<a href="' . getPlayerLink($player, false) . '" style="position: relative;">' . $player->getName() . '</a>';
|
||||
|
||||
$post['vocation'] = $player->getVocationName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user