Log a backtrace from the culprit location if headers were already sent
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index 46def53..7a34c74 100644 (file)
@@ -1788,6 +1788,7 @@ function wfHttpError( $code, $label, $desc ) {
                $wgOut->sendCacheControl();
        }
 
+       MediaWiki\HeaderCallback::warnIfHeadersSent();
        header( 'Content-type: text/html; charset=utf-8' );
        print '<!DOCTYPE html>' .
                '<html><head><title>' .