64 $enMsg->inLanguage(
'en' )->useDatabase(
false );
65 parent::__construct( $enMsg->text() );
87 public function report( $action = self::SEND_OUTPUT ) {
88 if ( self::isCommandLine() || defined(
'MW_API' ) ) {
92 $wgOut->showErrorPage( $this->title, $this->
msg, $this->params );
97 if ( $action === self::SEND_OUTPUT ) {
105class_alias( ErrorPageError::class,
'ErrorPageError' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
An error page which can definitely be safely rendered using the OutputPage.
string MessageSpecifier $title
report( $action=self::SEND_OUTPUT)
string MessageSpecifier $msg
__construct( $title, $msg, $params=[])
Note: these arguments are keys into wfMessage(), not text!
getMessageObject()
Return a Message object for this exception.