57 $msg = $this->
getMessageObject()->inLanguage(
'en' )->useDatabase(
false )->text();
58 $msg = preg_replace(
'!</?(var|kbd|samp|code)>!',
'"', $msg );
59 $msg = Sanitizer::stripAllTags( $msg );
60 parent::__construct( $msg,
$code, $previous );
64 return Message::newFromSpecifier( $this->messageSpec );
Basic localized exception.
__construct( $messageSpec, $code=0, $previous=null)
string array MessageSpecifier $messageSpec
getMessageObject()
Return a Message object for this exception.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable & $code
Interface for MediaWiki-localized exceptions.
getMessageObject()
Return a Message object for this exception.