mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-15 02:54:23 +00:00
Merge "Use new Special:Log?logid=xxx URL for notification link"
This commit is contained in:
commit
fc4893d833
|
@ -100,9 +100,9 @@ class EchoCoreThanksPresentationModel extends EchoEventPresentationModel {
|
|||
}
|
||||
|
||||
public function getPrimaryLink() {
|
||||
if ( $this->event->getExtraParam( 'logid' ) ) {
|
||||
$logId = $this->event->getExtraParam( 'logid' );
|
||||
$url = Title::newFromText( "Special:Redirect/logid/$logId" )->getCanonicalURL();
|
||||
$logId = $this->event->getExtraParam( 'logid' );
|
||||
if ( $logId ) {
|
||||
$url = SpecialPage::getTitleFor( 'Log' )->getLocalURL( [ 'logid' => $logId ] );
|
||||
$label = 'notification-link-text-view-logentry';
|
||||
} else {
|
||||
$url = $this->event->getTitle()->getLocalURL( [
|
||||
|
|
Loading…
Reference in a new issue