X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=784c9cc8d945bbb439519aa91f960966b903cf85;hb=58f55e4161d3b4034ea54ad486d90fc045288d89;hp=e43494f1053a876d471cd95d509523a294209d71;hpb=6e008d188bf9c7f8d4edc2a8799c61940eee48e7;p=mailer.git diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index e43494f105..784c9cc8d9 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! @@ -112,8 +109,11 @@ if (REQUEST_ISSET_GET(('id'))) { } } else { // Sponsor not found! - $message = sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval(REQUEST_GET('id'))); + $message = sprintf(getMessage('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'); @@ -121,8 +121,8 @@ if (REQUEST_ISSET_GET(('id'))) { if (!empty($message)) { // Output message - LOAD_TEMPLATE('admin_settings_saved', false, $message); -} + loadTemplate('admin_settings_saved', false, $message); +} // END - if -// +// [EOF] ?>