Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/288340

Change subject: Rename MentionPresentationModel::getType() to avoid conflict 
with I4eceaf521315
......................................................................

Rename MentionPresentationModel::getType() to avoid conflict with I4eceaf521315

Change-Id: I0ad0edd50ad56a0e63078b2906918853de5c26d0
(cherry picked from commit f9c3d3a117b0a33afdb0c1bdba58f8704adc4840)
---
M includes/Notifications/MentionPresentationModel.php
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/40/288340/1

diff --git a/includes/Notifications/MentionPresentationModel.php 
b/includes/Notifications/MentionPresentationModel.php
index 8ea4a59..2b4042f 100644
--- a/includes/Notifications/MentionPresentationModel.php
+++ b/includes/Notifications/MentionPresentationModel.php
@@ -19,9 +19,9 @@
                );
 
                // override url, link straight to that specific post/topic
-               if ( $this->getType() === 'post' ) {
+               if ( $this->getRevisionType() === 'post' ) {
                        $link['url'] = $this->getPostLinkUrl();
-               } elseif ( $this->getType() === 'post-summary' ) {
+               } elseif ( $this->getRevisionType() === 'post-summary' ) {
                        $link['url'] = $this->getTopicLinkUrl();
                }
 
@@ -36,7 +36,7 @@
        }
 
        public function getHeaderMessageKey() {
-               return parent::getHeaderMessageKey() . '-' . $this->getType();
+               return parent::getHeaderMessageKey() . '-' . 
$this->getRevisionType();
        }
 
        public function getHeaderMessage() {
@@ -44,7 +44,7 @@
                $msg->params( $this->getTruncatedTitleText( 
$this->event->getTitle(), true) );
                $msg->params( $this->getViewingUserForGender() );
 
-               if ( in_array( $this->getType(), array( 'post', 'post-summary' 
) ) ) {
+               if ( in_array( $this->getRevisionType(), array( 'post', 
'post-summary' ) ) ) {
                        $msg->plaintextParams( $this->getTopicTitle() );
                }
 
@@ -57,7 +57,7 @@
                return $msg;
        }
 
-       protected function getType() {
+       protected function getRevisionType() {
                // we didn't use to include the type to differentiate messages, 
but
                // then we only supported posts
                return $this->event->getExtraParam( 'revision-type', 'post' );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0ad0edd50ad56a0e63078b2906918853de5c26d0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.27.0-wmf.23
Gerrit-Owner: Catrope <[email protected]>

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

Reply via email to