mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-23 22:44:42 +00:00
Document generated messages
Change-Id: I89101839f7c056cdd509e000fb0bbc8573f97515
This commit is contained in:
parent
deeaf16bdb
commit
1e77d0163f
|
@ -59,6 +59,8 @@ class EchoCoreThanksPresentationModel extends EchoEventPresentationModel {
|
|||
}
|
||||
|
||||
public function getCompactHeaderMessage() {
|
||||
// The following message is used here:
|
||||
// * notification-compact-header-edit-thank
|
||||
$msg = parent::getCompactHeaderMessage();
|
||||
$msg->params( $this->getViewingUserForGender() );
|
||||
return $msg;
|
||||
|
|
|
@ -23,6 +23,8 @@ class EchoFlowThanksPresentationModel extends FlowPresentationModel {
|
|||
$msg->params( $this->getViewingUserForGender() );
|
||||
return $msg;
|
||||
} else {
|
||||
// The following message is used here:
|
||||
// * notification-header-flow-thank
|
||||
$msg = parent::getHeaderMessage();
|
||||
$msg->plaintextParams( $this->getTopicTitle() );
|
||||
$msg->params( $this->getTruncatedTitleText( $this->event->getTitle(), true ) );
|
||||
|
@ -32,6 +34,8 @@ class EchoFlowThanksPresentationModel extends FlowPresentationModel {
|
|||
}
|
||||
|
||||
public function getCompactHeaderMessage() {
|
||||
// The following message is used here:
|
||||
// * notification-compact-header-flow-thank
|
||||
$msg = parent::getCompactHeaderMessage();
|
||||
$msg->params( $this->getViewingUserForGender() );
|
||||
return $msg;
|
||||
|
|
|
@ -307,6 +307,8 @@ class Hooks implements
|
|||
];
|
||||
|
||||
$notifications['edit-thank'] = [
|
||||
// The following message is generated by the category name:
|
||||
// * echo-category-title-edit-thank
|
||||
'category' => 'edit-thank',
|
||||
'group' => 'positive',
|
||||
'section' => 'message',
|
||||
|
|
Loading…
Reference in a new issue