EchoCoreThanksPresentationModel: Avoid re-implementing getThankType()

Change-Id: I48aa7593cec275ed4e38b22b36a2a998c7202cdc
This commit is contained in:
Framawiki 2018-08-30 00:02:06 +02:00 committed by Legoktm
parent ef2ec2c0a6
commit fe8a3916c2

View file

@ -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.