From: Brion Vibber Date: Sat, 5 Jul 2003 07:35:28 +0000 (+0000) Subject: Fix minor bug that didn't properly touch the new page title when renaming, which... X-Git-Tag: 1.1.0~452 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=75ec13ba750d6f55e55b18506112a601575b1a26;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() ) .