diff --git a/index.php b/index.php index b02c5860..34c39a98 100644 --- a/index.php +++ b/index.php @@ -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'), diff --git a/system/pages/accountmanagement.php b/system/pages/accountmanagement.php index 86f5d5f3..875af53d 100644 --- a/system/pages/accountmanagement.php +++ b/system/pages/accountmanagement.php @@ -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 )); } } diff --git a/system/templates/account.change_comment.html.twig b/system/templates/account.change_comment.html.twig index 93eb837e..cd621d14 100644 --- a/system/templates/account.change_comment.html.twig +++ b/system/templates/account.change_comment.html.twig @@ -30,7 +30,7 @@ If you do not want to specify a certain field, just leave it blank.

- +
Name:{{ player_name }}{{ player.getName() }}
Hide Account: