Use the right counter for the right badge

Follow-up to Ib8aa673cf9e60ade80490ea0eccb7453d3747cd0

Bug: T142454
Change-Id: I086383a3002d28c2af8f3d8b5189bd7a58b02e98
This commit is contained in:
Stephane Bisson 2016-12-22 16:08:27 -05:00
parent 577d6b39b8
commit bff77edc7a

View file

@ -952,7 +952,7 @@ class EchoHooks {
$alertLinkClasses[] = 'mw-echo-notifications-badge-all-read';
}
if ( $msgCount > MWEchoNotifUser::MAX_BADGE_COUNT ) {
if ( $alertCount > MWEchoNotifUser::MAX_BADGE_COUNT ) {
$alertLinkClasses[] = 'mw-echo-notifications-badge-long-label';
}