From: Rob Church Date: Sun, 28 May 2006 21:59:03 +0000 (+0000) Subject: (bug 6040) Run pre-save transform before calculating the diff. when doing a "show... X-Git-Tag: 1.31.0-rc.0~56984 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=7dd3d0d6c090bbf2e72e7b89e2b0a8bebd23439b;p=lhc%2Fweb%2Fwiklou.git (bug 6040) Run pre-save transform before calculating the diff. when doing a "show changes" operation in the editor --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 93e7967254..4a02a0f71f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/EditPage.php b/includes/EditPage.php index 85b8688eda..97342d559d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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 != '' ) {