Index: trunk/extensions/Translate/api/ApiTranslationReview.php |
— | — | @@ -52,6 +52,10 @@ |
53 | 53 | $res = $dbw->insert( $table, $row, __METHOD__, $options ); |
54 | 54 | if ( !$dbw->affectedRows() ) { |
55 | 55 | $this->setWarning( 'Already marked as reviewed by you' ); |
| 56 | + } else { |
| 57 | + $logger = new LogPage( 'translationreview' ); |
| 58 | + $params = array( $revision->getId() ); |
| 59 | + $logger->addEntry( 'message', $title, null, $params, $wgUser ); |
56 | 60 | } |
57 | 61 | |
58 | 62 | $output = array( 'review' => array( |