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

behatnotneeded

Change-Id: I8ebbc6d427d59e7a3515b09ee5b1f67c14957122
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 84821546)
parent fce3ece8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
    }