Merge "Making agent param logic consistant"

This commit is contained in:
jenkins-bot 2013-04-10 17:32:47 +00:00 committed by Gerrit Code Review
commit 8f77e67e6f

View file

@ -427,7 +427,7 @@ class EchoBasicFormatter extends EchoNotificationFormatter {
protected function processParam( $event, $param, $message, $user ) {
if ( $param === 'agent' ) {
if ( !$event->getAgent() ) {
$message->params( '', wfMessage( 'echo-no-agent' )->text() );
$message->params( wfMessage( 'echo-no-agent' )->text() );
} else {
$message->params( $event->getAgent()->getName() );
}