X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-nickname.php;h=1fa6fecb3fb021067b775587e521c5f1191feba5;hb=8202991f32bfb2056e94a11746c0b5308fe4a273;hp=8505e6d0f188df45d4101db1a64fd391a1ae75a1;hpb=4e025e412935b6b221a2d183ada05b7a22f4b9e7;p=mailer.git diff --git a/inc/modules/member/what-nickname.php b/inc/modules/member/what-nickname.php index 8505e6d0f1..1fa6fecb3f 100644 --- a/inc/modules/member/what-nickname.php +++ b/inc/modules/member/what-nickname.php @@ -1,24 +1,23 @@ 'NICKNAME_CHANGED', + 'history_userid' => getMemberId(), + 'history_value' => postRequestElement('nickname') + ); + + // Run filter chain + runFilterChain('add_history_entry', $filterData); - // Nickname already in use! - $content = getMessage('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(getUserId())); - // Do we have already submit the form? - if (REQUEST_ISSET_POST(('nickname'))) { - LOAD_TEMPLATE("admin_settings_saved", false, "