MediaWiki  1.23.2
BadTitleError.php
Go to the documentation of this file.
1 <?php
34  public function __construct( $msg = 'badtitletext', $params = array() ) {
35  parent::__construct( 'badtitle', $msg, $params );
36  }
37 
42  public function report() {
43  global $wgOut;
44 
45  // bug 33646: a badtitle error page need to return an error code
46  // to let mobile browser now that it is not a normal page.
47  $wgOut->setStatusCode( 400 );
48  parent::report();
49  }
50 
51 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
BadTitleError\__construct
__construct( $msg='badtitletext', $params=array())
Definition: BadTitleError.php:34
$wgOut
$wgOut
Definition: Setup.php:562
BadTitleError\report
report()
Just like ErrorPageError::report() but additionally set a 400 HTTP status code (bug 33646).
Definition: BadTitleError.php:42
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
ErrorPageError\$params
$params
Definition: ErrorPageError.php:28
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition: ErrorPageError.php:27
BadTitleError
Show an error page on a badtitle.
Definition: BadTitleError.php:29
ErrorPageError\$msg
$msg
Definition: ErrorPageError.php:28