Followup r89564
authorSam Reed <reedy@users.mediawiki.org>
Thu, 4 Aug 2011 23:26:53 +0000 (23:26 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 4 Aug 2011 23:26:53 +0000 (23:26 +0000)
Switch from newFromTitle to the new newFromRow in r93935

includes/api/ApiFeedContributions.php

index ef6fecc..c1e6ff6 100644 (file)
@@ -99,7 +99,7 @@ class ApiFeedContributions extends ApiBase {
                if( $title ) {
                        $date = $row->rev_timestamp;
                        $comments = $title->getTalkPage()->getFullURL();
-                       $revision = Revision::newFromTitle( $title, $row->rev_id );
+                       $revision = Revision::newFromRow( $row);
 
                        return new FeedItem(
                                $title->getPrefixedText(),