Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 85... Línea 85...
85
 
85
 
86
        if ($haschanged) {
86
        if ($haschanged) {
87
            $new = implode(',', array_flip($plugins));
87
            $new = implode(',', array_flip($plugins));
88
            add_to_config_log('auth', $CFG->auth, $new, 'core');
88
            add_to_config_log('auth', $CFG->auth, $new, 'core');
-
 
89
            set_config('auth', $new);
89
            set_config('auth', $new);
90
            \core\session\manager::destroy_by_auth_plugin($pluginname);
90
            // Remove stale sessions.
91
            // Remove stale sessions.
91
            \core\session\manager::gc();
92
            \core\session\manager::gc();
92
            // Reset caches.
93
            // Reset caches.
93
            \core_plugin_manager::reset_caches();
94
            \core_plugin_manager::reset_caches();
Línea 158... Línea 159...
158
        if (($key = array_search($this->name, $auths)) !== false) {
159
        if (($key = array_search($this->name, $auths)) !== false) {
159
            unset($auths[$key]);
160
            unset($auths[$key]);
160
            $value = implode(',', $auths);
161
            $value = implode(',', $auths);
161
            add_to_config_log('auth', $CFG->auth, $value, 'core');
162
            add_to_config_log('auth', $CFG->auth, $value, 'core');
162
            set_config('auth', $value);
163
            set_config('auth', $value);
-
 
164
            \core\session\manager::destroy_by_auth_plugin($this->name);
163
        }
165
        }
Línea 164... Línea 166...
164
 
166
 
165
        if (!empty($CFG->registerauth) and $CFG->registerauth === $this->name) {
167
        if (!empty($CFG->registerauth) and $CFG->registerauth === $this->name) {
166
            unset_config('registerauth');
168
            unset_config('registerauth');