X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=cfeab36e6f17332876e5a98a055649a73972e1f9;hp=e1daf83ea37fc365c6556a8987abac945a6525d7;hb=6f9f29d5caee60a2cceae33a7a53e1b4c7319a0c;hpb=2f0357c7ac9da6c17d361b8e7cb0b1ad09eb85f6 diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index e1daf83ea3..cfeab36e6f 100644 --- a/inc/modules/admin/what-lock_sponsor.php +++ b/inc/modules/admin/what-lock_sponsor.php @@ -1,7 +1,7 @@ {!__GENDER!} {!__SURNAME!} {!__FAMILY!}'); + $content['email_link'] = '' . $content['gender'] . ' ' . $content['surname'] . ' ' . $content['family'] . ''; // Display form - LOAD_TEMPLATE('admin_lock_sponsor'); + loadTemplate('admin_lock_sponsor', false, $content); } } else { // Cannot change status on unconfirmed or pending accounts! - $message = getMessage('ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS'); + $message = '{--ADMIN_SPONSOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS--}'; } } else { - // Sponsor not found! - $message = sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval(REQUEST_GET('id'))); + // Sponsor not found + $message = '{%message,ADMIN_SPONSOR_404=' . bigintval(getRequestElement('id')) . '%}'; } + + // Free result + SQL_FREERESULT($result_sponsor); } else { // Not called by what-list_sponsor.php - $message = getMessage('ADMIN_CALL_NOT_DIRECTLY'); + $message = '{--ADMIN_CALL_NOT_DIRECTLY--}'; } if (!empty($message)) { // Output message - LOAD_TEMPLATE('admin_settings_saved', false, $message); -} + displayMessage($message); +} // END - if -// +// [EOF] ?>