$content['email'] = generateEmailLink(getUserData('email'), 'user_data');
$content['surname'] = getUserData('surname');
$content['family'] = getUserData('family');
+ $content['status'] = getUserData('status');
$content['userid'] = bigintval(getRequestElement('userid'));
// Realy want to lock?
- switch ($status) {
+ switch ($content['status']) {
case 'CONFIRMED': // Yes, lock him down... ;-)
$content['ok'] = 'lock';
$content['header'] = sprintf(getMessage('ADMIN_HEADER_LOCK_ACCOUNT'), $content['userid']);
break;
}
+ // Translate user status
+ $content['status'] = translateUserStatus($content['status']);
+
// Output form
loadTemplate('admin_lock_user', false, $content);
} else {