Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-12858 fix print_error() usage.

print_error()'s third parameter is the URL we jump to (defaults to
$CFG->wwwroot if not set) when we click the 'Continue' button, not the message
string parameter object.
  • Loading branch information...
commit c10708e9ce91805de91369f002cacb8659da09e6 1 parent ef1da49
iarenaza authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 auth/ldap/auth.php
View
8 auth/ldap/auth.php
@@ -97,7 +97,7 @@ function user_login($username, $password) {
}
else {
@ldap_close($ldapconnection);
- print_error('auth_ldap_noconnect','auth',$this->config->host_url);
+ print_error('auth_ldap_noconnect','auth','',$this->config->host_url);
}
return false;
}
@@ -273,7 +273,7 @@ function user_create($userobject, $plainpass) {
$newuser['userpassword'] = $extpassword;
break;
default:
- print_error('auth_ldap_unsupportedusertype','auth',$this->config->user_type);
+ print_error('auth_ldap_unsupportedusertype','auth','',$this->config->user_type);
}
$uadd = ldap_add($ldapconnection, $this->config->user_attribute.'="'.$this->ldap_addslashes($userobject->username).','.$this->config->create_context.'"', $newuser);
ldap_close($ldapconnection);
@@ -695,7 +695,7 @@ function update_user_record($username, $updatekeys = false) {
$user = get_record('user', 'username', $username, 'mnethostid', $CFG->mnet_localhost_id);
if (empty($user)) { // trouble
error_log("Cannot update non-existent user: ".stripslashes($username));
- print_error('auth_dbusernotexist','auth',$username);
+ print_error('auth_dbusernotexist','auth','',$username);
die;
}
@@ -1389,7 +1389,7 @@ function ldap_connect($binddn='',$bindpwd='') {
}
//If any of servers are alive we have already returned connection
- print_error('auth_ldap_noconnect_all','auth',$this->config->user_type);
+ print_error('auth_ldap_noconnect_all','auth', '', $debuginfo);
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.