Fix typos that keep undelete from working with new db code
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 3 Aug 2004 04:37:36 +0000 (04:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 3 Aug 2004 04:37:36 +0000 (04:37 +0000)
includes/SpecialUndelete.php

index 41bd629..eed049b 100644 (file)
@@ -169,7 +169,7 @@ class UndeleteForm {
                        return;
                }
                $dbw =& wfGetDB( DB_MASTER );
-               extract( $dbw->tableNames( 'cur', 'archive' ) );
+               extract( $dbw->tableNames( 'cur', 'archive', 'old' ) );
                $t = $dbw->strencode($title);
 
                # Move article and history from the "archive" table
@@ -188,7 +188,7 @@ class UndeleteForm {
                        $redirect = MagicWord::get( MAG_REDIRECT );
                        $redir = $redirect->matchStart( $s->ar_text ) ? 1 : 0;
                        
-                       $seqVal = addQuotes( $dbw->nextSequenceValue( 'cur_cur_id_seq' ) );
+                       $seqVal = $dbw->addQuotes( $dbw->nextSequenceValue( 'cur_cur_id_seq' ) );
 
                        $sql = "INSERT INTO $cur (cur_id,cur_namespace,cur_title,cur_text," .
                          "cur_comment,cur_user,cur_user_text,cur_timestamp,inverse_timestamp,cur_minor_edit,cur_is_redirect,cur_random,cur_touched)" .