mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-01 10:56:44 +00:00
07c962e82f
Don't try to render if page was deleted, and fix 'extra' parameter (was breaking message key and thus rendering) Bug: T129641 Change-Id: I5d0fdfd3921427993211969eb5793f8e9e7667a8
24 lines
582 B
PHP
24 lines
582 B
PHP
<?php
|
|
|
|
class EchoEditThresholdPresentationModel extends EchoEventPresentationModel {
|
|
|
|
public function getIconType() {
|
|
return 'edit';
|
|
}
|
|
|
|
public function getHeaderMessageKey() {
|
|
return 'notification-header-thank-you-' . $this->event->getExtraParam( 'editCount' ) . '-edit';
|
|
}
|
|
|
|
public function getPrimaryLink() {
|
|
return array(
|
|
'url' => $this->event->getTitle()->getLocalURL(),
|
|
'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text()
|
|
);
|
|
}
|
|
|
|
public function canRender() {
|
|
return $this->event->getTitle() !== null;
|
|
}
|
|
}
|