X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-lock_sponsor.php;h=85ed036d3ccfe13f3bc1eef6a22b2b179710156e;hb=91c5ab6d4bba6959611a9b9661c032cc4c9da6e8;hp=e43494f1053a876d471cd95d509523a294209d71;hpb=bb3d322203724ae9026368c8da7bda02da01940e;p=mailer.git diff --git a/inc/modules/admin/what-lock_sponsor.php b/inc/modules/admin/what-lock_sponsor.php index e43494f105..85ed036d3c 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 = getMaskedMessage('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] ?>