From 69c7edbb111f5e84c1dac6e3f5b7b74dc0b951d2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 3 Aug 2004 04:37:36 +0000 Subject: [PATCH] Fix typos that keep undelete from working with new db code --- includes/SpecialUndelete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 41bd629bc0..eed049b47c 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -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)" . -- 2.20.1