From: Brion Vibber Date: Tue, 3 Aug 2004 04:37:36 +0000 (+0000) Subject: Fix typos that keep undelete from working with new db code X-Git-Tag: 1.5.0alpha1~2534 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=69c7edbb111f5e84c1dac6e3f5b7b74dc0b951d2;p=lhc%2Fweb%2Fwiklou.git Fix typos that keep undelete from working with new db code --- 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)" .