mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-13 17:57:21 +00:00
Merge "thank-you-edit: canRender for deleted page and extra fix"
This commit is contained in:
commit
91a15811cb
|
@ -495,7 +495,7 @@ class EchoHooks {
|
||||||
// Edit threshold notifications are sent to the agent
|
// Edit threshold notifications are sent to the agent
|
||||||
'extra' => array(
|
'extra' => array(
|
||||||
'notifyAgent' => true,
|
'notifyAgent' => true,
|
||||||
'thresholdCount' => $thresholdCount,
|
'editCount' => $thresholdCount,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -16,4 +16,8 @@ class EchoEditThresholdPresentationModel extends EchoEventPresentationModel {
|
||||||
'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text()
|
'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function canRender() {
|
||||||
|
return $this->event->getTitle() !== null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue