Commit 065980e5 authored by Richard Mansfield's avatar Richard Mansfield

Show suspended date for suspended users (bug #911602)

Change-Id: I972a9969d194a934af4548aef07beb465602359f
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent e5430524
......@@ -513,6 +513,7 @@ else {
$suspendform2 = pieform($suspendformdef);
$suspender = display_name(get_record('usr', 'id', $suspended));
$suspendedtime = format_date($user->get('suspendedctime'), 'strftimedate');
}
function edituser_suspend_submit(Pieform $form, $values) {
......@@ -725,7 +726,7 @@ $smarty = smarty();
$smarty->assign('user', $user);
$smarty->assign('suspended', $suspended);
if ($suspended) {
$smarty->assign('suspendedby', get_string('suspendedby', 'admin', $suspender));
$smarty->assign('suspendedby', get_string('suspendedinfo', 'admin', $suspender, $suspendedtime));
}
$smarty->assign('suspendform', $suspendform);
if (isset($suspendform2)) {
......
......@@ -617,7 +617,7 @@ $string['suspendedreason'] = 'Reason for suspension';
$string['suspendedreasondescription'] = 'The text that will be displayed to the user on their next login attempt.';
$string['unsuspenduser'] = 'Unsuspend User';
$string['thisuserissuspended'] = 'This user has been suspended';
$string['suspendedby'] = 'This user has been suspended by %s';
$string['suspendedinfo'] = 'This user was suspended by %s on %s';
$string['deleteuser'] = 'Delete User';
$string['userdeletedsuccessfully'] = 'User deleted successfully';
$string['confirmdeleteuser'] = 'Are you sure you want to delete this user?';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment