r1591 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1590‎ | r1591 | r1592 >
Date:12:09, 24 August 2003
Author:vibber
Status:old
Tags:
Comment:
Fix for corruption of previous edit's data for 'post comment'
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -383,6 +383,9 @@
384384 global $wgOut, $wgUser, $wgTitle, $wgLinkCache;
385385 global $wgDBtransactions;
386386 $fname = "Article::updateArticle";
 387+
 388+ $this->loadLastEdit();
 389+
387390 // insert updated section into old text if we have only edited part
388391 // of the article
389392 if ($section != "") {
@@ -405,7 +408,6 @@
406409 $text = $m[1] . "\n"; # Remove all content but redirect
407410 }
408411 else { $redir = 0; }
409 - $this->loadLastEdit();
410412
411413 $text = $this->preSaveTransform( $text );
412414

Status & tagging log