bug #1955572 [display] alt text causes duplicated strings
This commit is contained in:
@@ -20,6 +20,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
- bug #1910621 [display] part 2: do not display a BINARY content as text
|
||||
- patch #1957998 [display] No tilde for InnoDB row counter when we know
|
||||
it for sure, thanks to Vladyslav Bakayev - dandy76
|
||||
- bug #1955572 [display] alt text causes duplicated strings
|
||||
|
||||
2.11.6.0 (2008-04-29)
|
||||
- bug #1903724 [interface] Displaying of very large queries in error message
|
||||
|
@@ -1562,8 +1562,11 @@ function PMA_getTab($tab)
|
||||
// display icon, even if iconic is disabled but the link-text is missing
|
||||
if (($GLOBALS['cfg']['MainPageIconic'] || empty($tab['text']))
|
||||
&& isset($tab['icon'])) {
|
||||
// avoid generating an alt tag, because it only illustrates
|
||||
// the text that follows and if browser does not display
|
||||
// images, the text is duplicated
|
||||
$image = '<img class="icon" src="' . htmlentities($GLOBALS['pmaThemeImage'])
|
||||
.'%1$s" width="16" height="16" alt="%2$s" />%2$s';
|
||||
.'%1$s" width="16" height="16" />%2$s';
|
||||
$tab['text'] = sprintf($image, htmlentities($tab['icon']), $tab['text']);
|
||||
}
|
||||
// check to not display an empty link-text
|
||||
|
Reference in New Issue
Block a user