mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Fixed variable interpolation in DataOutputFormatter.php
Bug: T154369 Change-Id: Ib51165081797d3aa5e036e3fde771ac92e89baa3
This commit is contained in:
parent
5291e5848b
commit
a3784bef1d
|
@ -165,8 +165,9 @@ class EchoDataOutputFormatter {
|
|||
*/
|
||||
protected static function formatNotification( EchoEvent $event, User $user, $format, $lang ) {
|
||||
if ( isset( self::$formatters[$format] ) ) {
|
||||
$class = self::$formatters[$format];
|
||||
/** @var EchoEventFormatter $formatter */
|
||||
$formatter = new self::$formatters[$format]( $user, $lang );
|
||||
$formatter = new $class( $user, $lang );
|
||||
return $formatter->format( $event );
|
||||
} else {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue