MediaWiki master
BadRequestError.php
Go to the documentation of this file.
1<?php
30
35 public function report( $action = self::SEND_OUTPUT ) {
36 global $wgOut;
37 $wgOut->setStatusCode( 400 );
38 parent::report( $action );
39 }
40}
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition Setup.php:568
An error page that emits an HTTP 400 Bad Request status code.
report( $action=self::SEND_OUTPUT)
An error page which can definitely be safely rendered using the OutputPage.