Sanitizer::escapeId() is deperecated

Change-Id: Ia0e1e87ebb027eb75659901830d3dc44fc196c68
This commit is contained in:
Max Semenik 2019-11-11 11:27:20 -08:00
parent ed021a372b
commit 23ea634ace
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class SpecialContact extends UnlistedSpecialPage {
$form->setWrapperLegendMsg( 'contactpage-legend' );
$form->setSubmitTextMsg( 'emailsend' );
if ( $this->formType != '' ) {
$form->setId( Sanitizer::escapeId( "contactpage-{$this->formType}" ) );
$form->setId( "contactpage-{$this->formType}" );
$msg = $this->msg( "contactpage-legend-{$this->formType}" );
if ( !$msg->isDisabled() ) {