Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -855,14 +855,15 @@ |
856 | 856 | |
857 | 857 | /** |
858 | 858 | * Get flags for a revision |
| 859 | + * @param Title $title |
859 | 860 | * @param int $rev_id |
860 | 861 | * @return Array |
861 | 862 | */ |
862 | | - public static function getRevisionTags( $article, $rev_id ) { |
| 863 | + public static function getRevisionTags( $title, $rev_id ) { |
863 | 864 | $dbr = wfGetDB( DB_SLAVE ); |
864 | 865 | $tags = $dbr->selectField( 'flaggedrevs', 'fr_tags', |
865 | 866 | array( 'fr_rev_id' => $rev_id, |
866 | | - 'fr_page_id' => $article->getId() ), |
| 867 | + 'fr_page_id' => $title->getArticleId() ), |
867 | 868 | __METHOD__ ); |
868 | 869 | if( !$tags ) |
869 | 870 | return false; |