From 75ec13ba750d6f55e55b18506112a601575b1a26 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 5 Jul 2003 07:35:28 +0000 Subject: [PATCH] Fix minor bug that didn't properly touch the new page title when renaming, which could lead to the 'there is no text' message showing --- includes/SpecialMovepage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 8d3d79d038..245d53704e 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -335,13 +335,13 @@ class MovePageForm { $fname = "MovePageForm::moveToNewTitle"; $mt = wfMsg( "movedto" ); + $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}"; wfQuery( $sql, $fname ); - $now = wfTimestampNow(); - $won = wfInvertTimestamp( $now ); $common = "{$this->ons},'{$this->odt}'," . "'{$mt} \\\"{$this->nft}\\\"','" . $wgUser->getID() . "','" . wfStrencode( $wgUser->getName() ) . -- 2.20.1