fix and provide more documentation in EditPage for mergeContentInto functions
authoraude <aude.wiki@gmail.com>
Fri, 26 Oct 2012 03:47:30 +0000 (03:47 +0000)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Thu, 20 Dec 2012 08:25:56 +0000 (09:25 +0100)
Change-Id: I2a5aed29a6e8ff05ddea5d46f854740b9f3b03b1

includes/EditPage.php

index 292d2b7..ad6c98d 100644 (file)
@@ -1250,7 +1250,7 @@ class EditPage {
                try {
                        # Construct Content object
                        $textbox_content = $this->toEditContent( $this->textbox1 );
-               } catch (MWContentSerializationException $ex) {
+               } catch ( MWContentSerializationException $ex ) {
                        $status->fatal( 'content-failed-to-parse', $this->contentModel, $this->contentFormat, $ex->getMessage() );
                        $status->value = self::AS_PARSE_ERROR;
                        wfProfileOut( __METHOD__ );
@@ -1672,8 +1672,7 @@ class EditPage {
        }
 
        /**
-        * @private
-        * @todo document
+        * Attempts to merge text content with base and current revisions
         *
         * @param $editText string
         *
@@ -1695,12 +1694,15 @@ class EditPage {
        }
 
        /**
-        * @private
-        * @todo document
+        * Attempts to do 3-way merge of edit content with a base revision
+        * and current content, in case of edit conflict, in whichever way appropriate
+        * for the content type.
+        *
+        * @since 1.21
         *
         * @param $editContent
+        *
         * @return bool
-        * @since since 1.WD
         */
        private function mergeChangesIntoContent( &$editContent ){
                wfProfileIn( __METHOD__ );