r100700 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100699‎ | r100700 | r100701 >
Date:14:31, 25 October 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Message review log entry creation
Internationalization/#143
Modified paths:
  • /trunk/extensions/Translate/api/ApiTranslationReview.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/api/ApiTranslationReview.php
@@ -52,6 +52,10 @@
5353 $res = $dbw->insert( $table, $row, __METHOD__, $options );
5454 if ( !$dbw->affectedRows() ) {
5555 $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 );
5660 }
5761
5862 $output = array( 'review' => array(

Status & tagging log