https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112819

Revision: 112819
Author:   ialex
Date:     2012-03-01 17:29:12 +0000 (Thu, 01 Mar 2012)
Log Message:
-----------
* (bug 34849) Diff when editing an old version show the comparison with the 
current text again

Modified Paths:
--------------
    branches/REL1_19/phase3/includes/EditPage.php
    trunk/phase3/includes/EditPage.php

Modified: branches/REL1_19/phase3/includes/EditPage.php
===================================================================
--- branches/REL1_19/phase3/includes/EditPage.php       2012-03-01 16:42:28 UTC 
(rev 112818)
+++ branches/REL1_19/phase3/includes/EditPage.php       2012-03-01 17:29:12 UTC 
(rev 112819)
@@ -2306,7 +2306,7 @@
        function showDiff() {
                global $wgUser, $wgContLang, $wgParser, $wgOut;
 
-               $oldtext = $this->getOriginalContent();
+               $oldtext = $this->mArticle->getRawText();
                $newtext = $this->mArticle->replaceSection(
                        $this->section, $this->textbox1, $this->summary, 
$this->edittime );
 

Modified: trunk/phase3/includes/EditPage.php
===================================================================
--- trunk/phase3/includes/EditPage.php  2012-03-01 16:42:28 UTC (rev 112818)
+++ trunk/phase3/includes/EditPage.php  2012-03-01 17:29:12 UTC (rev 112819)
@@ -2311,7 +2311,7 @@
        function showDiff() {
                global $wgUser, $wgContLang, $wgParser, $wgOut;
 
-               $oldtext = $this->getOriginalContent();
+               $oldtext = $this->mArticle->getRawText();
                $newtext = $this->mArticle->replaceSection(
                        $this->section, $this->textbox1, $this->summary, 
$this->edittime );
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to