follow up for edit conflicts
authoraude <aude.wiki@gmail.com>
Wed, 24 Oct 2012 21:03:14 +0000 (21:03 +0000)
committeraude <aude.wiki@gmail.com>
Wed, 24 Oct 2012 21:04:10 +0000 (21:04 +0000)
Change-Id: I511b78664fd2c14d63a1d399cb5ddefa2d125a22

includes/EditPage.php

index 7ebcde0..88afb66 100644 (file)
@@ -1468,6 +1468,7 @@ class EditPage {
                                $this->isConflict = true;
                                $content = $textbox_content; // do not try to merge here!
                        } elseif ( $this->isConflict ) {
+                               $contentObj = $content;
                                # Attempt merge
                                if ( $this->mergeChangesInto( $content ) ) {
                                        // Successful merge! Maybe we should tell the user the good news?
@@ -1476,7 +1477,7 @@ class EditPage {
                                        wfDebug( __METHOD__ . ": Suppressing edit conflict, successful merge.\n" );
                                } else {
                                        $this->section = '';
-                                       $this->textbox1 = ContentHandler::getContentText( $content );
+                                       $this->textbox1 = ContentHandler::getContentText( $contentObj );
                                        wfDebug( __METHOD__ . ": Keeping edit conflict, failed merge.\n" );
                                }
                        }