mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-20695 do not use trigger_error together with echo, it just duplicates info when debugdisplay on
This commit is contained in:
parent
10729aaaf2
commit
f19b623bd9
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
/**
|
||||
* enrolment_factory is used to "manufacture" an instance of required enrolment plugin.
|
||||
@ -15,10 +15,8 @@ class enrolment_factory {
|
||||
$class = "enrolment_plugin_$enrol";
|
||||
return new $class;
|
||||
} else {
|
||||
trigger_error("$CFG->dirroot/enrol/$enrol/enrol.php does not exist");
|
||||
error_log("$CFG->dirroot/enrol/$enrol/enrol.php does not exist");
|
||||
echo $OUTPUT->notification("Enrolment file $enrol/enrol.php does not exist");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php // $Id$
|
||||
<?php
|
||||
|
||||
require_once("$CFG->dirroot/enrol/enrol.class.php");
|
||||
|
||||
@ -431,7 +431,7 @@ function enrol_ldap_connect(){
|
||||
$CFG->enrol_ldap_bind_pw );
|
||||
if (!$bind) {
|
||||
echo $OUTPUT->notification("Error in binding to LDAP server");
|
||||
trigger_error("Error in binding to LDAP server $!");
|
||||
error_log("Error in binding to LDAP server $!");
|
||||
}
|
||||
|
||||
}
|
||||
@ -655,4 +655,3 @@ function check_legacy_config () {
|
||||
|
||||
} // end of class
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user