Commit a8c13b27 authored by Nigel McNie's avatar Nigel McNie
Browse files

Display the suspended date for suspended users in a readable format.

parent ed2b4ac8
......@@ -132,7 +132,7 @@ class AuthXmlrpc extends Auth {
$user = new User;
$user->find_by_instanceid_username($this->instanceid, $remoteuser->username, true);
if ($user->get('suspendedcusr')) {
die_info(get_string('accountsuspended', 'mahara', $user->get('suspendedctime'), $user->get('suspendedreason')));
die_info(get_string('accountsuspended', 'mahara', strftime(get_string('strftimedaydate'), $user->get('suspendedctime')), $user->get('suspendedreason')));
if ('1' == $this->config['updateuserinfoonlogin']) {
$update = true;
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