jenkins-bot has submitted this change and it was merged.

Change subject: Use current (with keys) array format for primary link
......................................................................


Use current (with keys) array format for primary link

Change-Id: I17c95067f90e24b3fb3ea8e4761ce4d039132067
---
M includes/Notifications/FlowEnabledOnTalkpagePresentationModel.php
M includes/Notifications/MentionPresentationModel.php
M includes/Notifications/TopicRenamedPresentationModel.php
3 files changed, 7 insertions(+), 7 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Notifications/FlowEnabledOnTalkpagePresentationModel.php 
b/includes/Notifications/FlowEnabledOnTalkpagePresentationModel.php
index f2e36cb..89868f1 100644
--- a/includes/Notifications/FlowEnabledOnTalkpagePresentationModel.php
+++ b/includes/Notifications/FlowEnabledOnTalkpagePresentationModel.php
@@ -10,8 +10,8 @@
 
        public function getPrimaryLink() {
                return array(
-                       $this->event->getTitle()->getFullURL(),
-                       $this->msg( 
'flow-notification-link-text-enabled-on-talkpage' )->text()
+                       'url' => $this->event->getTitle()->getFullURL(),
+                       'label' => $this->msg( 
'flow-notification-link-text-enabled-on-talkpage' )->text()
                );
        }
 
diff --git a/includes/Notifications/MentionPresentationModel.php 
b/includes/Notifications/MentionPresentationModel.php
index 3dfb429..2cb90b2 100644
--- a/includes/Notifications/MentionPresentationModel.php
+++ b/includes/Notifications/MentionPresentationModel.php
@@ -10,8 +10,8 @@
 
        public function getPrimaryLink() {
                return array(
-                       $this->getPostLinkUrl(),
-                       $this->msg( 'notification-link-text-view-mention' 
)->text()
+                       'url' => $this->getPostLinkUrl(),
+                       'label' => $this->msg( 
'notification-link-text-view-mention' )->text()
                );
        }
 
@@ -23,4 +23,4 @@
                return $msg;
        }
 
-}
\ No newline at end of file
+}
diff --git a/includes/Notifications/TopicRenamedPresentationModel.php 
b/includes/Notifications/TopicRenamedPresentationModel.php
index 100331d..ffc0d99 100644
--- a/includes/Notifications/TopicRenamedPresentationModel.php
+++ b/includes/Notifications/TopicRenamedPresentationModel.php
@@ -13,8 +13,8 @@
 
        public function getPrimaryLink() {
                return array(
-                       $this->getPostLinkUrl(),
-                       $this->msg( 'flow-notification-link-text-view-post' 
)->text()
+                       'url' => $this->getPostLinkUrl(),
+                       'label' => $this->msg( 
'flow-notification-link-text-view-post' )->text()
                );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/259525
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I17c95067f90e24b3fb3ea8e4761ce4d039132067
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to