X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-nickname.php;h=1fa6fecb3fb021067b775587e521c5f1191feba5;hb=8202991f32bfb2056e94a11746c0b5308fe4a273;hp=6fee3818c2cca39907a0dcc40783e216a7ec78a1;hpb=7c9cf221f2f7ef99d45fc233bf346c9f9168ef3e;p=mailer.git diff --git a/inc/modules/member/what-nickname.php b/inc/modules/member/what-nickname.php index 6fee3818c2..1fa6fecb3f 100644 --- a/inc/modules/member/what-nickname.php +++ b/inc/modules/member/what-nickname.php @@ -1,19 +1,23 @@ 'NICKNAME_CHANGED', + 'history_userid' => getMemberId(), + 'history_value' => postRequestElement('nickname') + ); + + // Run filter chain + runFilterChain('add_history_entry', $filterData); - // Nickname already in use! - $content = NICKNAME_ALREADY_IN_USE; - } + // Change message + $content = '{--MEMBER_NICKNAME_SAVED--}'; + } // END - if + + // Free result + SQL_FREERESULT($result); // Load template - LOAD_TEMPLATE("admin_settings_saved", false, $content); + displayMessage($content); } else { - // Load current nickname - define('__NICKNAME', NICKNAME_GET_NICK($GLOBALS['userid'])); - // Do we have already submit the form? - if (!empty($_POST['nickname'])) { - LOAD_TEMPLATE("admin_settings_saved", false, "