Skip to content

Commit

Permalink
v.1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Flerex committed Jun 19, 2018
1 parent 1db71d9 commit 09503b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "A phpBB 3.2 extension that allows users to switch between their accounts with ease.",
"homepage": "https://github.com/flerex/linkedaccounts",
"version": "1.0.3",
"version": "1.0.4",
"time": "2018-03-01",
"keywords": ["flerex", "topic", "participants", "list"],
"license": "GPL-2.0",
Expand Down
9 changes: 5 additions & 4 deletions ucp/main_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ public function main($id, $mode)
switch($mode)
{
case 'management':
default:
$this->tpl_name = 'ucp_management';
$this->page_title = $this->user->lang('LINKED_ACCOUNTS_MANAGEMENT');
$this->mode_management();
break;

case 'link':
$this->tpl_name = 'ucp_link';
$this->page_title = $this->user->lang('LINKING_ACCOUNT');
$this->mode_link();
break;

}

$this->{'mode_' . $mode}();


}


Expand Down Expand Up @@ -106,6 +106,7 @@ private function mode_link()

$passwords_manager = $this->phpbb_container->get('passwords.manager');

$errors = array();
if(!(empty($password) && empty($cur_password) && empty($username)))
{
if(empty($cur_password))
Expand Down

0 comments on commit 09503b8

Please sign in to comment.