50 $enMsg->inLanguage(
'en' )->useDatabase(
false );
51 parent::__construct( $enMsg->text() );
73 public function report( $action = self::SEND_OUTPUT ) {
74 if ( self::isCommandLine() || defined(
'MW_API' ) ) {
78 $wgOut->showErrorPage( $this->title, $this->
msg, $this->params );
83 if ( $action === self::SEND_OUTPUT ) {
91class_alias( ErrorPageError::class,
'ErrorPageError' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
if(MW_ENTRY_POINT==='index') 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.