From 7dd3d0d6c090bbf2e72e7b89e2b0a8bebd23439b Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 28 May 2006 21:59:03 +0000 Subject: [PATCH] (bug 6040) Run pre-save transform before calculating the diff. when doing a "show changes" operation in the editor --- RELEASE-NOTES | 2 ++ includes/EditPage.php | 1 + 2 files changed, 3 insertions(+) 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 != '' ) { -- 2.20.1