Index: trunk/extensions/ArticleFeedback/api/ApiArticleFeedback.php |
— | — | @@ -75,6 +75,16 @@ |
76 | 76 | |
77 | 77 | $this->insertProperties( $revisionId, $wgUser, $token, $params ); |
78 | 78 | |
| 79 | + $squidUpdate = new SquidUpdate( array( wfAppendQuery( 'api.php', array( |
| 80 | + 'action' => 'query', |
| 81 | + 'format' => 'json', |
| 82 | + 'list' => 'articlefeedback', |
| 83 | + 'afpageid' => $pageId, |
| 84 | + 'afanontoken' => '', |
| 85 | + 'afuserrating' => 0 |
| 86 | + ) ) ) ); |
| 87 | + $squidUpdate->doUpdate(); |
| 88 | + |
79 | 89 | wfRunHooks( 'ArticleFeedbackChangeRating', array( $params ) ); |
80 | 90 | |
81 | 91 | $r = array( 'result' => 'Success' ); |