From ed63d169ef97761f4814b260fd10cbad9065993d Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 28 Sep 2015 17:14:55 +0200 Subject: [PATCH] monitoring: Fix URL and title for state badges refs #5543 --- .../library/Monitoring/Web/Widget/StateBadges.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php b/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php index 88be84b1d..73d4169d6 100644 --- a/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php +++ b/modules/monitoring/library/Monitoring/Web/Widget/StateBadges.php @@ -197,7 +197,11 @@ class StateBadges extends AbstractWidget 'attributes' => array('class' => 'badge ' . $state), 'label' => $badge->count, 'priority' => $this->priority++, - 'url' => $this->url + 'title' => vsprintf( + mtp('monitoring', $badge->translateSingular, $badge->translatePlural, $badge->count), + $badge->translateArgs + ), + 'url' => clone $this->url->setParams($badge->filter) ))); } return $this;