mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Making agent param logic consistant"
This commit is contained in:
commit
8f77e67e6f
|
@ -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() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue