Commit a38ddad4 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1794628: Allow config errors session setup to be right



behatnotneeded

Change-Id: I37aa210a7446fabc3513b00798eefb86b8e50303
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent ec303769
......@@ -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();
}
......
Supports Markdown
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