Commit 0c454378 authored by Robert Lyon's avatar Robert Lyon
Browse files

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


Change-Id: I8ebbc6d427d59e7a3515b09ee5b1f67c14957122
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
(cherry picked from commit 84821546)
parent fce3ece8
......@@ -124,7 +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