From cc403806f764c1527afc78cc451b4745a945d475 Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Wed, 25 Feb 2015 15:28:09 +0100 Subject: [PATCH] Fix refresh accessibility lable if it is empty refs #7968 --- library/Icinga/Web/Widget/Tabs.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget/Tabs.php b/library/Icinga/Web/Widget/Tabs.php index b9a9a539d..e83d10783 100644 --- a/library/Icinga/Web/Widget/Tabs.php +++ b/library/Icinga/Web/Widget/Tabs.php @@ -328,9 +328,13 @@ EOT; $tab = $this->get($this->getActiveName()); if ($tab !== null) { - $caption = $this->view()->escape( + $label = $this->view()->escape( $tab->getLabel() ); + } + + if (! empty($label)) { + $caption = $label; } else { $caption = t('Content'); }