mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +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
|
||||
'extra' => array(
|
||||
'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()
|
||||
);
|
||||
}
|
||||
|
||||
public function canRender() {
|
||||
return $this->event->getTitle() !== null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue