From 47fadf1ed16e463583c116f25f04aafd2d7e1cd7 Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 10 Apr 2010 14:11:40 +0000 Subject: [PATCH] fixing bug 23139 (introduced in r59655) which broke edit conflict resolution --- includes/EditPage.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 47ec0a415d..c7eaa21d65 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1295,7 +1295,7 @@ HTML // and fallback to the raw wpTextbox1 since editconflicts can't be // resolved between page source edits and custom ui edits using the // custom edit ui. - $this->showTextbox1(); + $this->showTextbox1( null, $this->getContent() ); } else { $this->showContentForm(); } @@ -1775,7 +1775,11 @@ INPUTS $wgOut->addHTML( " {$cancel}{$separator}{$edithelp}\n" ); $wgOut->addHTML( "\n\n" ); } - + + /* + * Show an edit conflict. textbox1 is already shown in showEditForm(). + * If you want to use another entry point to this function, be careful. + */ protected function showConflict() { global $wgOut; $this->textbox2 = $this->textbox1; -- 2.20.1