Commit 6c86c746 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Log environment errors if optional extensions required for networking are not available

parent 8e823e3a
......@@ -55,6 +55,17 @@ function ensure_sanity() {
throw new ConfigSanityException(get_string('sessionextensionnotloaded', 'error'));
}
// Various optional extensions
if (!extension_loaded('openssl')) {
log_environ(get_string('opensslextensionnotloaded', 'error'));
}
if (!extension_loaded('curl')) {
log_environ(get_string('curlextensionnotloaded', 'error'));
}
if (!extension_loaded('xmlrpc')) {
log_environ(get_string('xmlrpcextensionnotloaded', 'error'));
}
// register globals workaround
if (ini_get_bool('register_globals')) {
log_environ(get_string('registerglobals', 'error'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment