From: Brion Vibber Date: Thu, 4 Mar 2004 08:26:17 +0000 (+0000) Subject: Fix for #883774 inverse_timestamp not updated when overwriting an old redirect on... X-Git-Tag: 1.3.0beta1~875 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=b8a9a85bc163dd962c4b77e1b694e6c8a3fa7451;p=lhc%2Fweb%2Fwiklou.git Fix for #883774 inverse_timestamp not updated when overwriting an old redirect on move. --- diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 3a0b32d0e4..9fc0dd6e79 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -312,6 +312,7 @@ class MovePageForm { # Change the name of the target page: $now = wfTimestampNow(); + $won = wfInvertTimestamp( $now ); $sql = "UPDATE cur SET cur_touched='{$now}'," . "cur_namespace={$this->nns},cur_title='{$this->ndt}' " . "WHERE cur_id={$this->oldid}"; @@ -320,7 +321,7 @@ class MovePageForm { # Repurpose the old redirect. We don't save it to history since # by definition if we've got here it's rather uninteresting. - $sql = "UPDATE cur SET cur_touched='{$now}',cur_timestamp='{$now}'," . + $sql = "UPDATE cur SET cur_touched='{$now}',cur_timestamp='{$now}',inverse_timestamp='${won}'," . "cur_namespace={$this->ons},cur_title='{$this->odt}'," . "cur_text='#REDIRECT [[{$this->nft}]]\n',cur_comment='" . "{$mt} \\\"{$this->nft}\\\"',cur_user='" . $wgUser->getID() .