bug [navi] Wrong icon for view (MySQL 5.5)

This commit is contained in:
Marc Delisle
2011-10-10 08:49:41 -04:00
parent 6fec80c614
commit a6fc7ac928
2 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog
- bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false
- bug #3418849 [interface] Inline edit shows dropdowns even after closing
- bug [view] View renaming did not work
- bug [navi] Wrong icon for view (MySQL 5.5)
3.4.6.0 (not yet released)
- patch #3404173 InnoDB comment display with tooltips/aliases

View File

@@ -625,7 +625,8 @@ function PMA_displayTableList($tables, $visible = false,
.'&goto=' . $GLOBALS['cfg']['LeftDefaultTabTable']
. '" >'
.'<img class="icon"';
if ('VIEW' === strtoupper($table['Comment'])) {
if (PMA_Table::isView($table_db, $table['Name'])) {
echo ' src="' . $GLOBALS['pmaThemeImage'] . 's_views.png"';
} else {
echo ' src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"';