From 7461f62155b101f27370ee4632702cfd07c04b0b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 24 Aug 2003 12:09:20 +0000 Subject: [PATCH] Fix for corruption of previous edit's data for 'post comment' --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 82465b8db4..626a9b3304 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -383,6 +383,9 @@ class Article { global $wgOut, $wgUser, $wgTitle, $wgLinkCache; global $wgDBtransactions; $fname = "Article::updateArticle"; + + $this->loadLastEdit(); + // insert updated section into old text if we have only edited part // of the article if ($section != "") { @@ -405,7 +408,6 @@ class Article { $text = $m[1] . "\n"; # Remove all content but redirect } else { $redir = 0; } - $this->loadLastEdit(); $text = $this->preSaveTransform( $text ); -- 2.20.1