r86740 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86739‎ | r86740 | r86741 >
Date:21:17, 22 April 2011
Author:tparscal
Status:ok
Tags:
Comment:
Added call to ArticleFeedbackChangeRating hook upon successful rating change - this will be useful for populating extra tables for high-performance statistics queries.
Modified paths:
  • /trunk/extensions/ArticleFeedback/api/ApiArticleFeedback.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/api/ApiArticleFeedback.php
@@ -72,9 +72,11 @@
7373
7474 $this->insertUserRatings( $pageId, $revisionId, $wgUser, $token, $rating, $thisRating, $params['bucket'] );
7575 }
76 -
 76+
7777 $this->insertProperties( $revisionId, $wgUser, $token, $params );
7878
 79+ wfRunHooks( 'ArticleFeedbackChangeRating', array( $params ) );
 80+
7981 $r = array( 'result' => 'Success' );
8082 $this->getResult()->addValue( null, $this->getModuleName(), $r );
8183 }

Status & tagging log