From 72ff518f79b21543f9e871065fd1b1a5b625a6f0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 17 Feb 2009 23:36:02 +0000 Subject: [PATCH] (bug 17542) RevisionDeleted failed on deleted revisions (double-quoting) --- includes/specials/SpecialRevisiondelete.php | 2 +- includes/specials/SpecialUndelete.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 7c5d6b64e2..e364839d24 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -218,7 +218,7 @@ class RevisionDeleteForm { } else { // Run through and pull all our data in one query foreach( $this->archrevs as $timestamp ) { - $where[] = $dbr->addQuotes( $timestamp ); + $where[] = $timestamp; } $result = $dbr->select( 'archive', '*', array( diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index e032d880ac..d40180cbdb 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -1142,7 +1142,7 @@ class UndeleteForm { $revdlink = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.wfMsgHtml('rev-delundel').')' ); } else { $query = array( 'target' => $this->mTargetObj->getPrefixedUrl(), - 'artimestamp' => $ts + 'artimestamp[]' => $ts ); $revdlink = $sk->revDeleteLink( $query, $rev->isDeleted( Revision::DELETED_RESTRICTED ) ); } -- 2.20.1