PMA_getTab(): added support for fragments in link

This commit is contained in:
Sebastian Mendel
2007-03-21 12:36:49 +00:00
parent 71075dac88
commit 75fe2cfa9e

View File

@@ -1477,6 +1477,7 @@ function PMA_getTab($tab)
'attr' => '',
'args' => '',
'warning' => '',
'fragment' => '',
);
$tab = array_merge($defaults, $tab);
@@ -1514,6 +1515,10 @@ function PMA_getTab($tab)
}
}
if (! empty($tab['fragment'])) {
$tab['link'] .= $tab['fragment'];
}
// display icon, even if iconic is disabled but the link-text is missing
if (($GLOBALS['cfg']['MainPageIconic'] || empty($tab['text']))
&& isset($tab['icon'])) {