Commit c25cf821 authored by Robert Lyon's avatar Robert Lyon

Bug 1579999: Class 'Session' not found in errors.php

The warning is
PHP Fatal error:  Class 'Session' not found in htdocs/lib/errors.php on line 128

behatnotneeded

Change-Id: I8ebbc6d427d59e7a3515b09ee5b1f67c14957122
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 84821546)
parent 38692ccf
......@@ -126,7 +126,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