'reason' => [
'type' => 'text',
'name' => 'reason',
- 'validation-callback' => function( $reason ) {
+ 'validation-callback' => function ( $reason ) {
$match = EditPage::matchSummarySpamRegex( $reason );
if ( $match ) {
return $this->msg( 'spamprotectionmatch', $match )->parse();
$oldContent = $this->oldRevision->getContent();
try {
$newContent = ContentHandler::makeContent(
- $oldContent->getNativeData(), $this->title, $data['model']
+ $oldContent->serialize(), $this->title, $data['model']
);
} catch ( MWException $e ) {
return Status::newFatal(