MediaWiki  REL1_24
BadTitleError Class Reference

Show an error page on a badtitle. More...

Inheritance diagram for BadTitleError:
Collaboration diagram for BadTitleError:

List of all members.

Public Member Functions

 __construct ($msg= 'badtitletext', $params=array())
 report ()
 Just like ErrorPageError::report() but additionally set a 400 HTTP status code (bug 33646).

Detailed Description

Show an error page on a badtitle.

Similar to ErrorPage, but emit a 400 HTTP error code to let mobile browser it is not really a valid content.

Since:
1.19

Definition at line 29 of file BadTitleError.php.


Constructor & Destructor Documentation

BadTitleError::__construct ( msg = 'badtitletext',
params = array() 
)
Parameters:
string | Message$msgA message key (default: 'badtitletext')
array$paramsParameter to wfMessage()

Definition at line 34 of file BadTitleError.php.

References ErrorPageError\$msg, and ErrorPageError\$params.


Member Function Documentation

Just like ErrorPageError::report() but additionally set a 400 HTTP status code (bug 33646).

Reimplemented from ErrorPageError.

Definition at line 42 of file BadTitleError.php.

References $wgOut, and global.

Referenced by BadTitleErrorTest\testExceptionSetsStatusCode().


The documentation for this class was generated from the following file: