Index: trunk/extensions/Translate/tag/TranslatablePage.php |
— | — | @@ -433,8 +433,8 @@ |
434 | 434 | /** |
435 | 435 | * Adds a tag which indicates that this page is |
436 | 436 | * suitable for translation. |
437 | | - * @param $revision integer |
438 | | - * @param null $value |
| 437 | + * @param $revision integer|Revision |
| 438 | + * @param $value string |
439 | 439 | */ |
440 | 440 | public function addMarkedTag( $revision, $value = null ) { |
441 | 441 | $this->addTag( 'tp:mark', $revision, $value ); |
— | — | @@ -444,12 +444,18 @@ |
445 | 445 | /** |
446 | 446 | * Adds a tag which indicates that this page source is |
447 | 447 | * ready for marking for translation. |
448 | | - * @param $revision integer |
| 448 | + * @param $revision integer|Revision |
449 | 449 | */ |
450 | 450 | public function addReadyTag( $revision ) { |
451 | 451 | $this->addTag( 'tp:tag', $revision ); |
452 | 452 | } |
453 | 453 | |
| 454 | + /** |
| 455 | + * @param $tag |
| 456 | + * @param $revision Revision |
| 457 | + * @param $value string |
| 458 | + * @throws MWException |
| 459 | + */ |
454 | 460 | protected function addTag( $tag, $revision, $value = null ) { |
455 | 461 | $dbw = wfGetDB( DB_MASTER ); |
456 | 462 | |
Index: trunk/extensions/Translate/utils/MessageWebImporter.php |
— | — | @@ -376,10 +376,10 @@ |
377 | 377 | * @static |
378 | 378 | * @throws MWException |
379 | 379 | * @param Title $title |
380 | | - * @param $message |
381 | | - * @param $comment |
382 | | - * @param null $user |
383 | | - * @param int $editFlags |
| 380 | + * @param $message |
| 381 | + * @param $comment |
| 382 | + * @param $user User |
| 383 | + * @param $editFlags |
384 | 384 | * @return array |
385 | 385 | */ |
386 | 386 | public static function doImport( $title, $message, $comment, $user = null, $editFlags = 0 ) { |