From: Roan Kattouw Date: Sun, 12 Dec 2010 15:55:03 +0000 (+0000) Subject: Folllowup r72866: use array syntax for rev_page = foo condition X-Git-Tag: 1.31.0-rc.0~33360 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=28235de1cd1ea1005c51566094a9b4fbaf0b78bc;p=lhc%2Fweb%2Fwiklou.git Folllowup r72866: use array syntax for rev_page = foo condition --- diff --git a/includes/Title.php b/includes/Title.php index 21028ea777..76bf76a9a9 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3749,7 +3749,7 @@ class Title { public function countRevisionsBetween( $old, $new ) { $dbr = wfGetDB( DB_SLAVE ); return (int)$dbr->selectField( 'revision', 'count(*)', - 'rev_page = ' . intval( $this->getArticleId() ) . + 'rev_page' => intval( $this->getArticleId() ) . ' AND rev_id > ' . intval( $old ) . ' AND rev_id < ' . intval( $new ), __METHOD__ @@ -3770,7 +3770,7 @@ class Title { $db = ( $flags & self::GAID_FOR_UPDATE ) ? wfGetDB( DB_MASTER ) : wfGetDB( DB_SLAVE ); $res = $db->select( 'revision', 'DISTINCT rev_user_text', array( - 'rev_page = ' . $this->getArticleID(), + 'rev_page' => $this->getArticleID(), 'rev_id > ' . (int)$fromRevId, 'rev_id < ' . (int)$toRevId ), __METHOD__,