diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/api/ApiFeedContributions.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/api/ApiFeedContributions.php')
-rw-r--r-- | includes/api/ApiFeedContributions.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index c1e6ff6e..4e70bde2 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -1,5 +1,4 @@ <?php - /** * * @@ -36,6 +35,8 @@ class ApiFeedContributions extends ApiBase { /** * This module uses a custom feed wrapper printer. + * + * @return ApiFormatFeedWrapper */ public function getCustomPrinter() { return new ApiFormatFeedWrapper( $this->getMain() ); @@ -73,7 +74,7 @@ class ApiFeedContributions extends ApiBase { $feedUrl ); - $pager = new ContribsPager( array( + $pager = new ContribsPager( $this->getContext(), array( 'target' => $target, 'namespace' => $params['namespace'], 'year' => $params['year'], @@ -99,7 +100,7 @@ class ApiFeedContributions extends ApiBase { if( $title ) { $date = $row->rev_timestamp; $comments = $title->getTalkPage()->getFullURL(); - $revision = Revision::newFromRow( $row); + $revision = Revision::newFromRow( $row ); return new FeedItem( $title->getPrefixedText(), @@ -195,7 +196,7 @@ class ApiFeedContributions extends ApiBase { ) ); } - protected function getExamples() { + public function getExamples() { return array( 'api.php?action=feedcontributions&user=Reedy', ); @@ -204,4 +205,4 @@ class ApiFeedContributions extends ApiBase { public function getVersion() { return __CLASS__ . ': $Id$'; } -}
\ No newline at end of file +} |