Fix minor bug that didn't properly touch the new page title when renaming, which...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 5 Jul 2003 07:35:28 +0000 (07:35 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 5 Jul 2003 07:35:28 +0000 (07:35 +0000)
includes/SpecialMovepage.php

index 8d3d79d..245d537 100644 (file)
@@ -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() ) .