From 860404eded43be7f44815a5fd8e510825bf6cbe1 Mon Sep 17 00:00:00 2001 From: Stephane Bisson Date: Tue, 23 Feb 2016 06:53:55 -0500 Subject: [PATCH] Notification: use speechBubbles icon for all talk pages Bug: T56433 Change-Id: I14e1af9dda1c08e1526fde59072f93189ab0b0d0 --- includes/formatters/EventPresentationModel.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/formatters/EventPresentationModel.php b/includes/formatters/EventPresentationModel.php index 05d521146..f4dab68ea 100644 --- a/includes/formatters/EventPresentationModel.php +++ b/includes/formatters/EventPresentationModel.php @@ -415,10 +415,9 @@ abstract class EchoEventPresentationModel implements JsonSerializable { * @return array */ final protected function getPageLink( Title $title, $description, $prioritized, $query = array() ) { - $ns = $title->getNamespace(); - if ( $ns === NS_USER_TALK ) { + if ( $title->getNamespace() === NS_USER_TALK ) { $icon = 'userSpeechBubble'; - } elseif ( $ns === NS_TALK ) { + } elseif ( $title->isTalkPage() ) { $icon = 'speechBubbles'; } else { $icon = 'article';