mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
EchoCoreThanksPresentationModel: Avoid re-implementing getThankType()
Change-Id: I48aa7593cec275ed4e38b22b36a2a998c7202cdc
This commit is contained in:
parent
ef2ec2c0a6
commit
fe8a3916c2
|
@ -17,7 +17,7 @@ class EchoCoreThanksPresentationModel extends EchoEventPresentationModel {
|
|||
}
|
||||
|
||||
public function getHeaderMessage() {
|
||||
$type = $this->event->getExtraParam( 'logid' ) ? 'log' : 'rev';
|
||||
$type = $this->getThankType();
|
||||
if ( $this->isBundled() ) {
|
||||
// Message is either notification-bundle-header-rev-thank
|
||||
// or notification-bundle-header-log-thank.
|
||||
|
|
Loading…
Reference in a new issue