Catrope has uploaded a new change for review.

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

Change subject: Revert "Include cross-wiki notifications in serverside-rendered 
badge"
......................................................................

Revert "Include cross-wiki notifications in serverside-rendered badge"

The hack that this introduced won't be needed after If78bfc710.

This reverts commit bbb096e605b9ed31954eae1c06d6d6b704b20b62.

Change-Id: I53278f40c50608f3d542ad21c5dc0c8e93a395f6
Depends-On: If78bfc710acd91a075771b565cc99f4c302a104d
---
M includes/skins/SkinMinerva.php
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/63/285663/1

diff --git a/includes/skins/SkinMinerva.php b/includes/skins/SkinMinerva.php
index 9a80505..fc638ab 100644
--- a/includes/skins/SkinMinerva.php
+++ b/includes/skins/SkinMinerva.php
@@ -283,8 +283,7 @@
                        $notificationsTitle = SpecialPage::getTitleFor( 
'Notifications' );
                        $notificationsMsg = $this->msg( 
'mobile-frontend-user-button-tooltip' )->text();
                        if ( $currentTitle->getPrefixedText() !== 
$notificationsTitle->getPrefixedText() ) {
-                               $notifUser = MWEchoNotifUser::newFromUser( 
$user );
-                               $count = $notifUser->getAlertCount() + 
$notifUser->getMessageCount();
+                               $count = MWEchoNotifUser::newFromUser( $user 
)->getNotificationCount();
                                $isZero = $count === 0;
                                $countLabel = 
EchoNotificationController::formatNotificationCount( $count );
                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I53278f40c50608f3d542ad21c5dc0c8e93a395f6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Catrope <roan.katt...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to