mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
LDAP Auth MDL-23331 fix global calls - thanks to Federico Botti for report/fix
This commit is contained in:
parent
985acc939b
commit
1aa66713a5
@ -404,7 +404,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
* @param boolean $notify print notice with link and terminate
|
||||
*/
|
||||
function user_signup($user, $notify=true) {
|
||||
global $CFG, $DB;
|
||||
global $CFG, $DB, $OUTPUT, $PAGE;
|
||||
|
||||
require_once($CFG->dirroot.'/user/profile/lib.php');
|
||||
|
||||
@ -833,7 +833,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
* @param string $username username
|
||||
*/
|
||||
function update_user_record($username, $updatekeys = false) {
|
||||
global $CFG;
|
||||
global $CFG, $DB;
|
||||
|
||||
//just in case check text case
|
||||
$username = trim(moodle_strtolower($username));
|
||||
|
Loading…
x
Reference in New Issue
Block a user