Index: trunk/phase3/includes/SpecialMovepage.php |
— | — | @@ -312,6 +312,7 @@ |
313 | 313 | |
314 | 314 | # Change the name of the target page: |
315 | 315 | $now = wfTimestampNow(); |
| 316 | + $won = wfInvertTimestamp( $now ); |
316 | 317 | $sql = "UPDATE cur SET cur_touched='{$now}'," . |
317 | 318 | "cur_namespace={$this->nns},cur_title='{$this->ndt}' " . |
318 | 319 | "WHERE cur_id={$this->oldid}"; |
— | — | @@ -320,7 +321,7 @@ |
321 | 322 | |
322 | 323 | # Repurpose the old redirect. We don't save it to history since |
323 | 324 | # 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}'," . |
325 | 326 | "cur_namespace={$this->ons},cur_title='{$this->odt}'," . |
326 | 327 | "cur_text='#REDIRECT [[{$this->nft}]]\n',cur_comment='" . |
327 | 328 | "{$mt} \\\"{$this->nft}\\\"',cur_user='" . $wgUser->getID() . |