if ( $this->getRequest()->getCheck( 'success' ) ) {
$out->wrapWikiMsg(
- "<div class=\"successbox\">\n$1\n</div>",
+ Xml::tags(
+ 'div',
+ array( 'class' => 'successbox', 'id' => 'mw-preferences-success' ),
+ '$1'
+ ),
'savedprefs'
);
}
- $out->addHelpLink( 'Help:Preferences' );
+ $this->addHelpLink( 'Help:Preferences' );
$htmlForm = Preferences::getFormObject( $this->getUser(), $this->getContext() );
$htmlForm->setSubmitCallback( array( 'Preferences', 'tryUISubmit' ) );