mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
(bug 41332) syncing params between child and parent methods
Change-Id: Icaec6ad0b332a2bd2b40d849e2d377d24dab6872
This commit is contained in:
parent
5bf61444bc
commit
a202fd8a12
|
@ -148,7 +148,7 @@ class EchoBasicFormatter extends EchoNotificationFormatter {
|
|||
* @param $user User
|
||||
* @throws MWException
|
||||
*/
|
||||
protected function processParam( EchoEvent $event, $param, $message, $user ) {
|
||||
protected function processParam( $event, $param, $message, $user ) {
|
||||
if ( $param === 'agent' ) {
|
||||
// Actually converts to two parameters for gender support
|
||||
if ( !$event->getAgent() ) {
|
||||
|
|
|
@ -21,7 +21,7 @@ class EchoCommentFormatter extends EchoEditFormatter {
|
|||
}
|
||||
}
|
||||
|
||||
protected function formatFragment( $details, $event, User $user ) {
|
||||
protected function formatFragment( $details, $event, $user ) {
|
||||
$userTalkPage = $user->getUserPage()->getTalkPage();
|
||||
|
||||
if (
|
||||
|
|
|
@ -8,7 +8,7 @@ class EchoEditFormatter extends EchoBasicFormatter {
|
|||
* @param $message Message
|
||||
* @param $user User
|
||||
*/
|
||||
protected function processParam( EchoEvent $event, $param, $message, $user ) {
|
||||
protected function processParam( $event, $param, $message, $user ) {
|
||||
if ( $param === 'difflink' ) {
|
||||
$eventData = $event->getExtra();
|
||||
if ( !isset( $eventData['revid'] ) ) {
|
||||
|
|
Loading…
Reference in a new issue