Merge "(bug 41409) Fix regression in diffs while editing old revisions"
authorDaniel Kinzler <daniel.kinzler@wikimedia.de>
Fri, 26 Oct 2012 08:05:48 +0000 (08:05 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 26 Oct 2012 08:05:48 +0000 (08:05 +0000)
RELEASE-NOTES-1.21
includes/EditPage.php

index 07cba04..d8314a3 100644 (file)
@@ -51,6 +51,8 @@ production.
 * (bug 37020) sql.php with readline eats semicolon
 * (bug 11748) Properly handle optionally-closed HTML tags when Tidy is
   disabled, and don't wrap HTML-syntax definition lists in paragraphs.
+* (bug 41409) Diffs while editing an old revision should again diff against the
+  current revision.
 
 === API changes in 1.21 ===
 * prop=revisions can now report the contentmodel and contentformat, see docs/contenthandler.txt
index 00eb76f..64167d7 100644 (file)
@@ -2651,7 +2651,7 @@ HTML
                                $oldContent = null;
                        }
                } else {
-                       $oldContent = $this->getOriginalContent();
+                       $oldContent = $this->getCurrentContent();
                }
 
                $textboxContent = $this->toEditContent( $this->textbox1 );