Reduce the risk of dropping edits during conflict resolution
authorAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Sat, 28 May 2005 12:21:56 +0000 (12:21 +0000)
committerAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Sat, 28 May 2005 12:21:56 +0000 (12:21 +0000)
includes/EditPage.php

index 281d18b..0db7343 100644 (file)
@@ -863,7 +863,7 @@ END
        function mergeChangesInto( &$text ){
                $yourtext = $this->mArticle->fetchRevisionText();
                
-               $db =& wfGetDB( DB_SLAVE );
+               $db =& wfGetDB( DB_MASTER );
                $oldText = $this->mArticle->fetchRevisionText(
                        $db->timestamp( $this->edittime ),
                        'rev_timestamp' );