Merge branch 'MDL-46753-26' of git://github.com/lameze/moodle into MOODLE_26_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2014-08-26 02:08:35 +02:00
+1 -1
View File
@@ -169,7 +169,7 @@ class auth_plugin_cas extends auth_plugin_ldap {
global $CFG, $USER, $DB;
if (!empty($this->config->logoutcas) && $USER->auth == $this->authtype) {
$backurl = $CFG->wwwroot;
$backurl = !empty($this->config->logout_return_url) ? $this->config->logout_return_url : $CFG->wwwroot;
$this->connectCAS();
// Note: Hack to stable versions to trigger the event before it redirect to CAS logout.
$sid = session_id();