Index: trunk/phase3/includes/Title.php |
— | — | @@ -1101,6 +1101,8 @@ |
1102 | 1102 | $dbw =& wfGetDB( DB_MASTER ); |
1103 | 1103 | $now = $dbw->timestamp(); |
1104 | 1104 | $won = wfInvertTimestamp( wfTimestamp(TS_MW,$now) ); |
| 1105 | + wfSeedRandom(); |
| 1106 | + $rand = number_format( mt_rand() / mt_getrandmax(), 12, '.', '' ); |
1105 | 1107 | |
1106 | 1108 | # Rename cur entry |
1107 | 1109 | $dbw->updateArray( 'cur', |
— | — | @@ -1127,6 +1129,7 @@ |
1128 | 1130 | 'inverse_timestamp' => $won, |
1129 | 1131 | 'cur_touched' => $now, |
1130 | 1132 | 'cur_is_redirect' => 1, |
| 1133 | + 'cur_random' => $rand, |
1131 | 1134 | 'cur_is_new' => 1, |
1132 | 1135 | 'cur_text' => "#REDIRECT [[" . $nt->getPrefixedText() . "]]\n" ), $fname |
1133 | 1136 | ); |