Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -2000,12 +2000,11 @@ |
2001 | 2001 | |
2002 | 2002 | static function addToHistQuery( $pager, &$queryInfo ) { |
2003 | 2003 | $flaggedArticle = FlaggedArticle::getInstance( $pager->mPageHistory->getTitle() ); |
2004 | | - $pageID = $pager->mPageHistory->getTitle()->getArticleId(); |
2005 | 2004 | if( $flaggedArticle->isReviewable() ) { |
2006 | 2005 | $queryInfo['tables'][] = 'flaggedrevs'; |
2007 | 2006 | $queryInfo['fields'][] = 'fr_quality'; |
2008 | 2007 | $queryInfo['fields'][] = 'fr_user'; |
2009 | | - $queryInfo['join_conds']['flaggedrevs'] = array( 'LEFT JOIN', "fr_page_id = {$pageID} AND fr_rev_id = rev_id" ); |
| 2008 | + $queryInfo['join_conds']['flaggedrevs'] = array( 'LEFT JOIN', "fr_page_id = rev_page AND fr_rev_id = rev_id" ); |
2010 | 2009 | } |
2011 | 2010 | return true; |
2012 | 2011 | } |