Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -431,14 +431,29 @@ |
432 | 432 | // Uses messages 'code-change-status', 'code-change-tags' |
433 | 433 | $line .= ' ' . wfMsgExt( "code-change-{$change->attrib}", 'parseinline', $revId ); |
434 | 434 | $line .= " <i>["; |
| 435 | + // Items that were changed or set... |
435 | 436 | if ( $change->removed ) { |
436 | 437 | $line .= '<b>' . wfMsg( 'code-change-removed' ) . '</b> '; |
437 | | - $line .= htmlspecialchars( $change->removed ); |
438 | | - $line .= $change->added ? " " : ""; |
| 438 | + // Status changes... |
| 439 | + if( $change->attrib == 'status' ) { |
| 440 | + $line .= wfMsgHtml( 'code-status-'.$change->removed ); |
| 441 | + $line .= $change->added ? " " : ""; // spacing |
| 442 | + // Tag changes |
| 443 | + } else if( $change->attrib == 'tags' ) { |
| 444 | + $line .= htmlspecialchars( $change->removed ); |
| 445 | + $line .= $change->added ? " " : ""; // spacing |
| 446 | + } |
439 | 447 | } |
| 448 | + // Items that were changed to something else... |
440 | 449 | if ( $change->added ) { |
441 | 450 | $line .= '<b>' . wfMsg( 'code-change-added' ) . '</b> '; |
442 | | - $line .= htmlspecialchars( $change->added ); |
| 451 | + // Status changes... |
| 452 | + if( $change->attrib == 'status' ) { |
| 453 | + $line .= wfMsgHtml( 'code-status-'.$change->added ); |
| 454 | + // Tag changes... |
| 455 | + } else { |
| 456 | + $line .= htmlspecialchars( $change->added ); |
| 457 | + } |
443 | 458 | } |
444 | 459 | $line .= "]</i>"; |
445 | 460 | return "<li>$line</li>"; |