Make logout work without needing openssl MDL-8070

This commit is contained in:
moodler 2007-01-04 08:32:50 +00:00
parent defd0467f4
commit 81693ac7f1

View File

@ -1792,9 +1792,11 @@ function require_logout() {
require($CFG->dirroot.'/auth/cas/logout.php');
}
require($CFG->dirroot.'/auth/mnet/auth.php');
$authplugin = new auth_plugin_mnet();
$authplugin->logout();
if (extension_loaded('openssl')) {
require($CFG->dirroot.'/auth/mnet/auth.php');
$authplugin = new auth_plugin_mnet();
$authplugin->logout();
}
}
if (ini_get_bool("register_globals") and check_php_version("4.3.0")) {