bug #3077454, don't apply inner_sql span to query_only mode, this breaks copying databases and rowcount of queries

This commit is contained in:
Dieter Adriaenssens
2010-10-04 20:49:05 +02:00
parent 76a864be5c
commit 3a3ac7caab

View File

@@ -2119,10 +2119,12 @@ if (! defined('PMA_MINIMUM_COMMON')) {
$docu = TRUE;
break;
} // end switch
// inner_sql is a span that exists for all cases
// inner_sql is a span that exists for all cases, except query_only
// of $cfg['SQP']['fmtType'] to make possible a replacement
// for inline editing
if ($mode!='query_only') {
$str .= '<span class="inner_sql">';
}
$close_docu_link = false;
$indent = 0;
$bracketlevel = 0;
@@ -2617,8 +2619,10 @@ if (! defined('PMA_MINIMUM_COMMON')) {
$str .= '</a>';
$close_docu_link = false;
}
if ($mode!='query_only') {
// close inner_sql span
$str .= '</span>';
}
if ($mode=='color') {
// close syntax span
$str .= '</span>';