Fix refresh accessibility lable if it is empty

refs #7968
This commit is contained in:
Alexander Fuhr 2015-02-25 15:28:09 +01:00
parent 453e0af987
commit cc403806f7
1 changed files with 5 additions and 1 deletions

View File

@ -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');
}