MediaWiki
REL1_35
BadTitleError.php
Go to the documentation of this file.
1
<?php
31
class
BadTitleError
extends
BadRequestError
{
39
public
function
__construct
(
$msg
=
'badtitletext'
,
$params
= [] ) {
40
if
(
$msg
instanceof
MalformedTitleException
) {
41
$errorMessage =
$msg
->getErrorMessage();
42
if
( !$errorMessage ) {
43
parent::__construct(
'badtitle'
,
'badtitletext'
, [] );
44
}
else
{
45
$errorMessageParams =
$msg
->getErrorMessageParameters();
46
parent::__construct(
'badtitle'
, $errorMessage, $errorMessageParams );
47
}
48
}
else
{
49
parent::__construct(
'badtitle'
,
$msg
,
$params
);
50
}
51
}
52
}
BadRequestError
An error page that emits an HTTP 400 Bad Request status code.
Definition
BadRequestError.php:29
BadTitleError
Show an error page on a badtitle.
Definition
BadTitleError.php:31
BadTitleError\__construct
__construct( $msg='badtitletext', $params=[])
Stable to call.
Definition
BadTitleError.php:39
ErrorPageError\$msg
$msg
Definition
ErrorPageError.php:33
ErrorPageError\$params
$params
Definition
ErrorPageError.php:33
MalformedTitleException
MalformedTitleException is thrown when a TitleParser is unable to parse a title string.
Definition
MalformedTitleException.php:26
includes
exception
BadTitleError.php
Generated on Sat Apr 6 2024 00:07:07 for MediaWiki by
1.9.8