X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-nickname.php;h=1fa6fecb3fb021067b775587e521c5f1191feba5;hb=8202991f32bfb2056e94a11746c0b5308fe4a273;hp=b817a4bdf49b92e3c2448c128948ada32ae86a5c;hpb=99cab54d086b044c882670ef9e051ba85bf9771f;p=mailer.git diff --git a/inc/modules/member/what-nickname.php b/inc/modules/member/what-nickname.php index b817a4bdf4..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') + ); - // Load template - LOAD_TEMPLATE("admin_settings_saved", false, $content); -} - else -{ - // Load current nickname - define('__NICKNAME', NICKNAME_GET_NICK($GLOBALS['userid'])); + // Run filter chain + runFilterChain('add_history_entry', $filterData); + // Change message + $content = '{--MEMBER_NICKNAME_SAVED--}'; + } // END - if + + // Free result + SQL_FREERESULT($result); + + // Load template + displayMessage($content); +} else { // Do we have already submit the form? - if (!empty($_POST['nickname'])) - { - OUTPUT_HTML("".NICKNAME_IS_INVALID."
"); - } + if (isPostRequestElementSet('nickname')) { + loadTemplate('admin_settings_unsaved', false, '{--MEMBER_NICKNAME_IS_INVALID--}'); + } // END - if // Load Template - LOAD_TEMPLATE("member_nickname_form"); + loadTemplate('member_nickname_form'); } -// + +// [EOF] ?>