Skip to content

Commit

Permalink
GH-224 Move username change mode up in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Jun 23, 2022
1 parent cc9dd39 commit 385d73f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ function isInputKeyChecked($input, $key) {

die();
}
if ($Mode === 'nickchange') {
Settings\Screens\UsernameChange\render([
'input' => &$_POST,
'user' => &$_User,
]);

die();
}

if(empty($Mode) OR $Mode == 'general')
{
Expand Down Expand Up @@ -1168,12 +1176,5 @@ function isInputKeyChecked($input, $key) {
$Page = parsetemplate($BodyTPL, $_Lang);
display($Page, $_Lang['Page_Title'], false);
}
else if($Mode == 'nickchange')
{
Settings\Screens\UsernameChange\render([
'input' => &$_POST,
'user' => &$_User,
]);
}

?>

0 comments on commit 385d73f

Please sign in to comment.