(bug 6040) Run pre-save transform before calculating the diff. when doing a "show...
authorRob Church <robchurch@users.mediawiki.org>
Sun, 28 May 2006 21:59:03 +0000 (21:59 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 28 May 2006 21:59:03 +0000 (21:59 +0000)
RELEASE-NOTES
includes/EditPage.php

index 93e7967..4a02a0f 100644 (file)
@@ -372,6 +372,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Fix profiling table definition
 * Pass a second parameter to "nogomatch" containing the search terms minus the
   preceding colon, allowing prettied-up messages
+* (bug 6040) Run pre-save transform before calculating the diff. when doing a
+  "show changes" operation in the editor
 
 == Compatibility ==
 
index 85b8688..97342d5 100644 (file)
@@ -1614,6 +1614,7 @@ END
                $oldtext = $this->mArticle->fetchContent();
                $newtext = $this->mArticle->replaceSection(
                        $this->section, $this->textbox1, $this->summary, $this->edittime );
+               $newtext = $this->mArticle->preSaveTransform( $newtext );
                $oldtitle = wfMsgExt( 'currentrev', array('parseinline') );
                $newtitle = wfMsgExt( 'yourtext', array('parseinline') );
                if ( $oldtext !== false  || $newtext != '' ) {