Tell regexp parser to use extra analysis on external link regexp;
[lhc/web/wiklou.git] / includes / SpecialUndelete.php
index 3e4e2d9..d450960 100644 (file)
@@ -167,8 +167,8 @@ class PageArchive {
                        $redirect = MagicWord::get( MAG_REDIRECT );
                        $redir = $redirect->matchStart( $text ) ? 1 : 0;
                        
-                       $rand = number_format( mt_rand() / mt_getrandmax(), 12, '.', '' );
-                       $dbw->insertArray( 'cur', array(
+                       $rand = wfRandom();
+                       $dbw->insert( 'cur', array(
                                'cur_id' => $dbw->nextSequenceValue( 'cur_cur_id_seq' ),
                                'cur_namespace' => $namespace,
                                'cur_title' => $ttl,