User:Leucosticte/Junkyard2

addExtensionUpdate( array( 'addField', 'revision', 'rev_mr_id', dirname( __FILE__ ). '/patch-revision-rev_mr_id.sql', true ) ); return true; }

public static function onAPIEditBeforeSave( $editPage, $text, &$resultArr, $params ) { global $wgMirrorEditParams; $wgMirrorEditParams = $params; return true; }

public static function onPageContentSaveRevision ( $wikiPage, $user, $content, $summary,               $isMinor, $flags, $revision, $status, $baseRevId ) { global $wgMirrorEditParams; $page = $revision->getPage; $title = $revision->getTitle; 'page'      => $newid, 'title'     => $this->getTitle, // for determining the default content model 'comment'   => $summary, 'minor_edit' => $isminor, 'text'      => $serialized, 'len'       => $newsize, 'user'      => $user->getId, 'user_text' => $user->getName, 'timestamp' => $now, 'content_model' => $content->getModel, 'content_format' => $serialisation_format, } }