MediaWiki
REL1_30
BadTitleError.php
Go to the documentation of this file.
1
<?php
30
class
BadTitleError
extends
BadRequestError
{
36
public
function
__construct
( $msg =
'badtitletext'
,
$params
= [] ) {
37
if
( $msg instanceof
MalformedTitleException
) {
38
$errorMessage = $msg->getErrorMessage();
39
if
( !$errorMessage ) {
40
parent::__construct(
'badtitle'
,
'badtitletext'
, [] );
41
}
else
{
42
$errorMessageParams = $msg->getErrorMessageParameters();
43
parent::__construct(
'badtitle'
, $errorMessage, $errorMessageParams );
44
}
45
}
else
{
46
parent::__construct(
'badtitle'
, $msg,
$params
);
47
}
48
}
49
}
BadRequestError
An error page that emits an HTTP 400 Bad Request status code.
Definition
BadRequestError.php:27
BadTitleError
Show an error page on a badtitle.
Definition
BadTitleError.php:30
BadTitleError\__construct
__construct( $msg='badtitletext', $params=[])
Definition
BadTitleError.php:36
ErrorPageError\$params
$params
Definition
ErrorPageError.php:28
MalformedTitleException
MalformedTitleException is thrown when a TitleParser is unable to parse a title string.
Definition
MalformedTitleException.php:25
includes
exception
BadTitleError.php
Generated on Mon Nov 25 2024 15:42:17 for MediaWiki by
1.10.0