'name' => 'unhide',
),
), $this->getContext(), 'compare' );
- $form->setSubmitText( wfMsg( 'compare-submit' ) );
+ $form->setSubmitTextMsg( 'compare-submit' );
$form->suppressReset();
$form->setMethod( 'get' );
$form->setSubmitCallback( array( __CLASS__, 'showDiff' ) );
}
$title = Title::newFromText( $value );
if ( !$title instanceof Title ) {
- return wfMsgExt( 'compare-invalid-title', 'parse' );
+ return $this->msg( 'compare-invalid-title' )->parseAsBlock();
}
if ( !$title->exists() ) {
- return wfMsgExt( 'compare-title-not-exists', 'parse' );
+ return $this->msg( 'compare-title-not-exists' )->parseAsBlock();
}
return true;
}
}
$revision = Revision::newFromId( $value );
if ( $revision === null ) {
- return wfMsgExt( 'compare-revision-not-exists', 'parse' );
+ return $this->msg( 'compare-revision-not-exists' )->parseAsBlock();
}
return true;
}