Merge "Log a backtrace from the culprit location if headers were already sent"
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index 3c3cdb8..af5d5fa 100644 (file)
@@ -1787,6 +1787,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>' .