monitoring: Fix URL and title for state badges

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-28 17:14:55 +02:00
parent 344dafe253
commit ed63d169ef
1 changed files with 5 additions and 1 deletions

View File

@ -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;