Fix for corruption of previous edit's data for 'post comment'
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 24 Aug 2003 12:09:20 +0000 (12:09 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 24 Aug 2003 12:09:20 +0000 (12:09 +0000)
includes/Article.php

index 82465b8..626a9b3 100644 (file)
@@ -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 );