* fixed forum add/edit board

This commit is contained in:
slawkens 2017-10-11 16:59:31 +02:00
parent 27fb0ffb06
commit a1950cf27e
3 changed files with 5 additions and 4 deletions

View File

@ -84,6 +84,8 @@ else {
'/^news\/archive\/?$/' => array('subtopic' => 'newsarchive'),
'/^news\/archive\/[0-9]+\/?$/' => array('subtopic' => 'newsarchive', 'id' => '$2'),
'/^guilds\/[A-Za-z0-9-_%+\']+$/' => array('subtopic' => 'guilds', 'action' => 'show', 'guild' => '$1'),
'/^forum\/add_board\/?$/' => array('subtopic' => 'forum', 'action' => 'add_board'),#
'/^forum\/edit_board\/?$/' => array('subtopic' => 'forum', 'action' => 'edit_board'),
'/^forum\/board\/[0-9]+\/?$/' => array('subtopic' => 'forum', 'action' => 'show_board', 'id' => '$2'),
'/^forum\/board\/[0-9]+\/[0-9]+\/?$/' => array('subtopic' => 'forum', 'action' => 'show_board', 'id' => '$2', 'page' => '$3'),
'/^forum\/thread\/[0-9]+\/?$/' => array('subtopic' => 'forum', 'action' => 'show_thread', 'id' => '$2'),

View File

@ -537,7 +537,7 @@ if($action == "changeemail") {
if($player_name != null) {
if (check_name($player_name)) {
$player = $ots->createObject('Player');
$player = new OTS_Player();
$player->find($player_name);
if ($player->isLoaded()) {
$player_account = $player->getAccount();
@ -573,8 +573,7 @@ if($action == "changeemail") {
if(isset($player)) {
echo $twig->render('account.change_comment.html.twig', array(
'player' => $player,
'player_name' => $player_name
'player' => $player
));
}
}

View File

@ -30,7 +30,7 @@ If you do not want to specify a certain field, just leave it blank.<br/><br/>
<table class="TableContent" width="100%">
<tr>
<td class="LabelV">Name:</td>
<td style="width:80%;" >{{ player_name }}</td>
<td style="width:80%;" >{{ player.getName() }}</td>
</tr>
<tr>
<td class="LabelV" >Hide Account:</td>