diff options
author | Marc Delisle <marc@infomarc.info> | 2012-04-22 00:37:50 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-04-22 00:37:50 +0400 |
commit | da0e04d179e8e11f3a0023e17305857c6fe6fbbd (patch) | |
tree | 783a1abf18959b203b3beb7339189e2e7adb4905 /db_structure.php | |
parent | e78a25ac765f842eba2db4abad9edd60afd2ee16 (diff) | |
parent | a26aec4d809bdbb396fcbc8ec7fa121203b05390 (diff) |
Fix merge conflicts
Diffstat (limited to 'db_structure.php')
-rw-r--r-- | db_structure.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/db_structure.php b/db_structure.php index 11bab14581..beb4e9bb81 100644 --- a/db_structure.php +++ b/db_structure.php @@ -379,7 +379,7 @@ foreach ($tables as $keyname => $each_table) { } $drop_query = 'DROP ' - . ($table_is_view ? 'VIEW' : 'TABLE') + . (($table_is_view || $each_table['ENGINE'] == null) ? 'VIEW' : 'TABLE') . ' ' . PMA_backquote($each_table['TABLE_NAME']); $drop_message = sprintf( $table_is_view ? __('View %s has been dropped') : __('Table %s has been dropped'), @@ -480,7 +480,17 @@ foreach ($tables as $keyname => $each_table) { <?php echo $titles['Insert']; ?></a></td> <td class="center"><?php echo $empty_table; ?></td> <td class="center"> - <a <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? 'class="drop_table_anchor"' : ''); ?> href="sql.php?<?php echo $tbl_url_query; + <a + <?php if ($GLOBALS['cfg']['AjaxEnable']) { + echo 'class="drop_table_anchor'; + if ($table_is_view || $each_table['ENGINE'] == null) { + // this class is used in db_structure.js to display the + // correct confirmation message + echo ' view'; + } + echo '"'; + } + ?> href="sql.php?<?php echo $tbl_url_query; ?>&reload=1&purge=1&sql_query=<?php echo urlencode($drop_query); ?>&message_to_show=<?php echo urlencode($drop_message); ?>" > |