From: Aaron Schulz Date: Tue, 17 Feb 2009 23:36:02 +0000 (+0000) Subject: (bug 17542) RevisionDeleted failed on deleted revisions (double-quoting) X-Git-Tag: 1.31.0-rc.0~42831 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=72ff518f79b21543f9e871065fd1b1a5b625a6f0;p=lhc%2Fweb%2Fwiklou.git (bug 17542) RevisionDeleted failed on deleted revisions (double-quoting) --- 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 ) ); }