* fixed country selection in create account

* deleted some useless code
This commit is contained in:
slawkens
2017-09-14 16:37:01 +02:00
parent c546a46847
commit 801188f957
8 changed files with 11 additions and 21 deletions

View File

@@ -19,8 +19,6 @@ function generate_search_form($autofocus = false)
global $config, $twig;
return $twig->render('characters.form.html.twig', array(
'link' => getPageLink('characters'),
'vdarkborder' => $config['vdarkborder'],
'darkborder' => $config['darkborder'],
'autofocus' => $autofocus
));
}

View File

@@ -279,6 +279,7 @@ If you haven\'t registered on ' . $config['lua']['serverName'] . ' please ignore
'countries' => isset($countries) ? $countries : null,
'accept_rules' => isset($_POST['accept_rules']) ? $_POST['accept_rules'] : false,
'country_recognized' => $country_recognized,
'country' => isset($country) ? $country : null,
'errors' => $errors
));
?>

View File

@@ -737,7 +737,6 @@ if($action == 'move_thread')
'post_id' => $post['id'],
'sections' => $sections,
'section_link' => getForumBoardLink($post['section']),
'config' => $config
));
}
}

View File

@@ -22,16 +22,10 @@ $config_salt_enabled = fieldExist('salt', 'accounts');
$action_type = isset($_REQUEST['action_type']) ? $_REQUEST['action_type'] : '';
if($action == '')
{
echo $twig->render('account.lost.form.html.twig', array(
'vdarkborder' => $config['vdarkborder'],
'darkborder' => $config['darkborder'],
'template_path' => $template_path
));
echo $twig->render('account.lost.form.html.twig');
}
else if($action == 'step1' && $action_type == '') {
echo $twig->render('account.lost.noaction.html.twig', array(
'template_path' => $template_path
));
echo $twig->render('account.lost.noaction.html.twig');
}
elseif($action == 'step1' && $action_type == 'email')
{

View File

@@ -60,8 +60,6 @@ if($canEdit) {
'link' => getPageLink('screenshots', ($action == 'edit' ? 'edit' : 'add')),
'action' => $action,
'id' => isset($id) ? $id : null,
'vdarkborder' => $config['vdarkborder'],
'darkborder' => $config['darkborder'],
'comment' => isset($comment) ? $comment : null,
'image' => isset($image) ? $image : null,
'author' => isset($author) ? $author : null