r34612 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34611‎ | r34612 | r34613 >
Date:13:18, 11 May 2008
Author:aaron
Status:old
Tags:
Comment:
Uses a title now
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -855,14 +855,15 @@
856856
857857 /**
858858 * Get flags for a revision
 859+ * @param Title $title
859860 * @param int $rev_id
860861 * @return Array
861862 */
862 - public static function getRevisionTags( $article, $rev_id ) {
 863+ public static function getRevisionTags( $title, $rev_id ) {
863864 $dbr = wfGetDB( DB_SLAVE );
864865 $tags = $dbr->selectField( 'flaggedrevs', 'fr_tags',
865866 array( 'fr_rev_id' => $rev_id,
866 - 'fr_page_id' => $article->getId() ),
 867+ 'fr_page_id' => $title->getArticleId() ),
867868 __METHOD__ );
868869 if( !$tags )
869870 return false;

Status & tagging log