From: Brion Vibber Date: Sun, 24 Aug 2003 12:09:20 +0000 (+0000) Subject: Fix for corruption of previous edit's data for 'post comment' X-Git-Tag: 1.1.0~317 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=7461f62155b101f27370ee4632702cfd07c04b0b;p=lhc%2Fweb%2Fwiklou.git Fix for corruption of previous edit's data for 'post comment' --- 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 );