Merge "document CASE (0th array element) for $magicWords"
[lhc/web/wiklou.git] / includes / Exception.php
index 9c472bf..9f6d5bd 100644 (file)
@@ -246,6 +246,9 @@ class MWException extends Exception {
                } elseif ( self::isCommandLine() ) {
                        MWExceptionHandler::printError( $this->getText() );
                } else {
+                       header( "HTTP/1.1 500 MediaWiki exception" );
+                       header( "Status: 500 MediaWiki exception", true );
+
                        $this->reportHTML();
                }
        }