wiki.techinc.nl/includes/exception
Timo Tijhof 36e0e638a8 exception: No longer try to send error page post-send on api.php
For other endpoints this was already fixed, as all MWExceptionRenderer
logic checks headers_sent() before outputting headers.

For the MW_API condition, it was calling wfHttpError(), which in
turn unconditionally tried to send headers.

Fix this by removing use of wfHttpError(), and instead re-use the
existing logic for a minimal http error page. Do this by removing
the early condition and instead let if fall into the general
render methods, and then treat MW_API as a non-OutputPage scenario.

Bug: T225657
Change-Id: I38bbf8007078c290a2576ef177b789fab1d2059f
2020-03-26 17:53:27 +00:00
..
BadRequestError.php exception: Let MediaWiki.php control final output for ErrorPageError 2019-09-26 07:56:14 +00:00
BadTitleError.php
CannotCreateActorException.php
ErrorPageError.php exception: Let MediaWiki.php control final output for ErrorPageError 2019-09-26 07:56:14 +00:00
FatalError.php Setup: Move wgArticlePath validation to its main consumer (PathRouter) 2019-09-25 23:06:52 +00:00
HttpError.php
ILocalizedException.php
LocalizedException.php Clean up redundant Exception|Throwable union type 2020-02-12 20:28:40 +00:00
MWContentSerializationException.php
MWException.php exception: No longer try to send error page post-send on api.php 2020-03-26 17:53:27 +00:00
MWExceptionHandler.php exception,deferred: Standardise on 'exception' for uncaughts and fatals 2020-03-06 20:16:22 +00:00
MWExceptionRenderer.php exception: No longer try to send error page post-send on api.php 2020-03-26 17:53:27 +00:00
MWUnknownContentModelException.php Set method visibility for various constructors 2019-12-03 20:17:30 +01:00
PermissionsError.php exception: Let MediaWiki.php control final output for ErrorPageError 2019-09-26 07:56:14 +00:00
ProcOpenError.php
ReadOnlyError.php
ShellDisabledError.php
ThrottledError.php exception: Let MediaWiki.php control final output for ErrorPageError 2019-09-26 07:56:14 +00:00
UserBlockedError.php Minor cleanups 2019-11-03 17:10:23 -08:00
UserNotLoggedIn.php Add missing @param and @return to documentation 2019-11-10 22:12:58 +00:00