Index: branches/REL1_3/phase3/RELEASE-NOTES |
— | — | @@ -18,6 +18,8 @@ |
19 | 19 | participation 'trusted' wikis, as it does not protect against cross-site |
20 | 20 | scripting attacks. For security, this option can only be enabled if in |
21 | 21 | $wgWhitelistEdit mode. |
| 22 | +* Fixed problem where pages which were created as a redirect following |
| 23 | + a move never showed on Special:Randompage. |
22 | 24 | |
23 | 25 | |
24 | 26 | == Version 1.3.3, 2004-09-09 == |
Index: branches/REL1_3/phase3/includes/Title.php |
— | — | @@ -1062,6 +1062,8 @@ |
1063 | 1063 | $won = wfInvertTimestamp( $now ); |
1064 | 1064 | $newid = $nt->getArticleID(); |
1065 | 1065 | $oldid = $this->getArticleID(); |
| 1066 | + wfSeedRandom(); |
| 1067 | + $rand = number_format( mt_rand() / mt_getrandmax(), 12, '.', '' ); |
1066 | 1068 | |
1067 | 1069 | # Rename cur entry |
1068 | 1070 | wfUpdateArray( |
— | — | @@ -1088,6 +1090,7 @@ |
1089 | 1091 | 'inverse_timestamp' => $won, |
1090 | 1092 | 'cur_touched' => $now, |
1091 | 1093 | 'cur_is_redirect' => 1, |
| 1094 | + 'cur_random' => $rand, |
1092 | 1095 | 'cur_is_new' => 1, |
1093 | 1096 | 'cur_text' => "#REDIRECT [[" . $nt->getPrefixedText() . "]]\n" ) |
1094 | 1097 | ); |