From 25bb0cc4b8d082cd7b67bdbf3ef18fa84b068711 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 12 Dec 2010 16:15:35 +0000 Subject: [PATCH] This is not an array, but a parameter. Revert r78254. Is the precommit hook not working? PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW in includes/Title.php on line 3752 --- includes/Title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 76bf76a9a9..21028ea777 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__, -- 2.20.1