49 $errorMessage =
$msg->getErrorMessage();
50 if ( !$errorMessage ) {
51 parent::__construct(
'badtitle',
'badtitletext', [] );
53 $errorMessageParams =
$msg->getErrorMessageParameters();
54 parent::__construct(
'badtitle', $errorMessage, $errorMessageParams );
64 public function report( $action = self::SEND_OUTPUT ) {
67 $wgOut->setStatusCode( 404 );
69 parent::report( self::STAGE_OUTPUT );
72 $wgOut->enableClientCache();
73 $wgOut->setCdnMaxage( 3600 );
75 if ( $action === self::SEND_OUTPUT ) {
82class_alias( BadTitleError::class,
'BadTitleError' );
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
An error page which can definitely be safely rendered using the OutputPage.
string MessageSpecifier $msg