PMA_getTab(): added support for fragments in link
This commit is contained in:
@@ -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'])) {
|
||||
|
Reference in New Issue
Block a user