Commit 6ff33511 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1794628: Allow config errors session setup to be right"

parents d436f5ff a38ddad4
......@@ -124,6 +124,7 @@ function log_environ ($message, $escape=true, $backtrace=true) {
function log_message ($message, $loglevel, $escape, $backtrace, $file=null, $line=null, $trace=null) {
global $SESSION, $CFG;
if (!$SESSION && function_exists('get_config') && $CFG) {
require_once(get_config('docroot') . 'auth/lib.php');
require_once(get_config('docroot') . 'auth/session.php');
$SESSION = Session::singleton();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment