diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index 9b22c379..ada25335 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -279,7 +279,7 @@ class User extends Base { * @param userID int User ID * @return bool */ - public function sendChangeConf($strType, $userID) { + public function sendChangeConfigEmail($strType, $userID) { $exists = $this->token->doesTokenExist($strType, $userID); if ($exists == 0) { $token = $this->token->createToken($strType, $userID); diff --git a/public/include/pages/account/edit.inc.php b/public/include/pages/account/edit.inc.php index b3614a87..8df98502 100644 --- a/public/include/pages/account/edit.inc.php +++ b/public/include/pages/account/edit.inc.php @@ -71,7 +71,7 @@ if ($user->isAuthenticated()) { $isvalid = in_array($_POST['utype'],$validtypes); if ($isvalid) { $ctype = strip_tags($_POST['utype']); - $send = $user->sendChangeConf($ctype, $_SESSION['USERDATA']['id']); + $send = $user->sendChangeConfigEmail($ctype, $_SESSION['USERDATA']['id']); if ($send) { $_SESSION['POPUP'][] = array('CONTENT' => 'A confirmation was sent to your e-mail, follow that link to continue', 'TYPE' => 'success'); } else {