r2610 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2609‎ | r2610 | r2611 >
Date:08:26, 4 March 2004
Author:vibber
Status:old
Tags:
Comment:
Fix for #883774 inverse_timestamp not updated when overwriting an old redirect on move.
Modified paths:
  • /trunk/phase3/includes/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialMovepage.php
@@ -312,6 +312,7 @@
313313
314314 # Change the name of the target page:
315315 $now = wfTimestampNow();
 316+ $won = wfInvertTimestamp( $now );
316317 $sql = "UPDATE cur SET cur_touched='{$now}'," .
317318 "cur_namespace={$this->nns},cur_title='{$this->ndt}' " .
318319 "WHERE cur_id={$this->oldid}";
@@ -320,7 +321,7 @@
321322
322323 # Repurpose the old redirect. We don't save it to history since
323324 # by definition if we've got here it's rather uninteresting.
324 - $sql = "UPDATE cur SET cur_touched='{$now}',cur_timestamp='{$now}'," .
 325+ $sql = "UPDATE cur SET cur_touched='{$now}',cur_timestamp='{$now}',inverse_timestamp='${won}'," .
325326 "cur_namespace={$this->ons},cur_title='{$this->odt}'," .
326327 "cur_text='#REDIRECT [[{$this->nft}]]\n',cur_comment='" .
327328 "{$mt} \\\"{$this->nft}\\\"',cur_user='" . $wgUser->getID() .

Status & tagging log