From: skodak Date: Sun, 18 Jan 2009 20:30:54 +0000 (+0000) Subject: MDL-17942 yet more session refactoring X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ad76d18475653c65f780a92afd4a36f71e4a8925;p=moodle.git MDL-17942 yet more session refactoring --- diff --git a/lib/sessionlib.php b/lib/sessionlib.php index fad7cab382..352af3186e 100644 --- a/lib/sessionlib.php +++ b/lib/sessionlib.php @@ -14,12 +14,12 @@ function session_get_instance() { $CFG->sessiontimeout = 7200; } - if (defined('SESSION_CUSTOM')) { + if (defined('SESSION_CUSTOM_CLASS')) { // this is a hook for webservices, key based login, etc. if (defined('SESSION_CUSTOM_FILE')) { require_once($CFG->dirroot.SESSION_CUSTOM_FILE); } - $session_class = SESSION_CUSTOM; + $session_class = SESSION_CUSTOM_CLASS; $session = new $session_class(); } else if ((!isset($CFG->dbsessions) or $CFG->dbsessions) and $DB->session_lock_supported()) {