From b8a9a85bc163dd962c4b77e1b694e6c8a3fa7451 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 4 Mar 2004 08:26:17 +0000 Subject: [PATCH] Fix for #883774 inverse_timestamp not updated when overwriting an old redirect on move. --- includes/SpecialMovepage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() . -- 2.20.1