The point is to have the fix applied to all usages of IContextSource::msg() calls instead of only SpecialPage.
public function setContext( IContextSource $context ) {
$this->inLanguage( $context->getLanguage() );
$this->title( $context->getTitle() );
+ $this->interface = true;
return $this;
}
// the context, but setting the language for Message class removes the
// interface message status, which breaks for example usernameless gender
// invokations. Restore the flag when not including special page in content.
- if ( !$this->including() ) {
- $message->setInterfaceMessageFlag( true );
+ if ( $this->including() ) {
+ $message->setInterfaceMessageFlag( false );
}
return $message;
}