diff --git a/enrol/enrol.class.php b/enrol/enrol.class.php index 50e719efa7a..8ff8afd6050 100644 --- a/enrol/enrol.class.php +++ b/enrol/enrol.class.php @@ -1,4 +1,4 @@ -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"); } } } - -?> diff --git a/enrol/ldap/enrol.php b/enrol/ldap/enrol.php index a886d5663d3..7a1d6e815bc 100755 --- a/enrol/ldap/enrol.php +++ b/enrol/ldap/enrol.php @@ -1,4 +1,4 @@ -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 -?>