Permalink
Browse files

MDL-8973 : Undo API change in previous commit

  • Loading branch information...
1 parent 3ac3641 commit d11ec62bd3b3ac4248a92a93c84f943970403dd2 donal72 committed with Martin Langhoff Apr 30, 2007
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/moodlelib.php
View
@@ -1828,11 +1828,11 @@ function require_logout() {
if (isloggedin()) {
add_to_log(SITEID, "user", "logout", "view.php?id=$USER->id&course=".SITEID, $USER->id, 0, $USER->id);
- if (!isset($USER->auth) || empty($USER->auth)) {
- $USER->auth = get_field('user', 'auth', 'id', $USER->id);
+ $authsequence = get_enabled_auth_plugins(); // auths, in sequence
+ foreach($authsequence as $authname) {
+ $authplugin = get_auth_plugin($authname);
+ $authplugin->prelogout_hook();
}
- $authplugin = get_auth_plugin($USER->auth);
- $authplugin->prelogout_hook();
}
if (ini_get_bool("register_globals") and check_php_version("4.3.0")) {

0 comments on commit d11ec62

Please sign in to comment.