(bug 34929) Show the correct diff when a section edit is rejected by the spam filter...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 8 Mar 2012 00:49:50 +0000 (00:49 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 8 Mar 2012 00:49:50 +0000 (00:49 +0000)
RELEASE-NOTES-1.20
includes/EditPage.php

index 41cf78f..ea77481 100644 (file)
@@ -40,6 +40,8 @@ production.
 * (bug 34863) Show deletion log extract on non-existent file pages if applicable.
 * (bug 28019) Let ?preloadtitle=foo be passed on to target of
   Special:MyPage and Special:MyTalk
+* (bug 34929) Show the correct diff when a section edit is rejected by the spam 
+  filter
 
 === API changes in 1.20 ===
 * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API.
index 3c1dba6..287ed97 100644 (file)
@@ -3043,9 +3043,7 @@ HTML
                $wgOut->addHTML( '</div>' );
 
                $wgOut->wrapWikiMsg( '<h2>$1</h2>', "yourdiff" );
-               $de = new DifferenceEngine( $this->mArticle->getContext() );
-               $de->setText( $this->getCurrentText(), $this->textbox2 );
-               $de->showDiff( wfMsg( "storedversion" ), wfMsgExt( 'yourtext', 'parseinline' ) );
+               $this->showDiff();
 
                $wgOut->wrapWikiMsg( '<h2>$1</h2>', "yourtext" );
                $this->showTextbox2();