$updateuser->id = $user->id;
$updateuser->auth = 'ldap';
if ($DB->pdate_record('user', $updateuser)) {
- echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n";
+ echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n";
} else {
- echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n";
+ echo "\t"; print_string('auth_dbrevivedusererror', 'auth_db', $user->username); echo "\n";
}
}
} else {
if ($old_user = $DB->get_record('user', array('username'=>$user->username, 'deleted'=>1, 'mnethostid'=>$user->mnethostid))) {
$user->id = $old_user->id;
$DB->set_field('user', 'deleted', 0, array('username'=>$user->username));
- echo "\t"; print_string('auth_dbreviveuser', 'auth_db', array($user->username, $user->id)); echo "\n";
+ echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n";
//TODO - username required to use PARAM_USERNAME before inserting into user table (MDL-16919)
} elseif ($id = $DB->insert_record ('user',$user)) { // it is truly a new user
$updateuser->id = $user->id;
$updateuser->auth = 'ldap';
if ($DB->pdate_record('user', $updateuser)) {
- echo "\t"; print_string('auth_dbreviveser', 'auth_db', array($user->username, $user->id)); echo "\n";
+ echo "\t"; print_string('auth_dbreviveduser', 'auth_db', array($user->username, $user->id)); echo "\n";
} else {
- echo "\t"; print_string('auth_dbreviveusererror', 'auth_db', $user->username); echo "\n";
+ echo "\t"; print_string('auth_dbrevivedusererror', 'auth_db', $user->username); echo "\n";
}
}
} else {