- use variable name as title if title is empty
- make use of PMA_formatNumber() for non byte numeric values
This commit is contained in:
@@ -88,7 +88,9 @@ function PMA_generateEngineDetails($variables, $like = null) {
|
|||||||
$dt_table .= ' ' . PMA_showHint($details['desc']) . "\n";
|
$dt_table .= ' ' . PMA_showHint($details['desc']) . "\n";
|
||||||
}
|
}
|
||||||
$dt_table .= ' </td>' . "\n"
|
$dt_table .= ' </td>' . "\n"
|
||||||
. ' <th>' . htmlspecialchars($details['title']) . "\n"
|
. ' <th>'
|
||||||
|
. htmlspecialchars( empty($details['title'])
|
||||||
|
? $var : $details['title'] ) . "\n"
|
||||||
. ' </th>' . "\n"
|
. ' </th>' . "\n"
|
||||||
. ' <td class="value">';
|
. ' <td class="value">';
|
||||||
switch ($details['type']) {
|
switch ($details['type']) {
|
||||||
@@ -97,8 +99,11 @@ function PMA_generateEngineDetails($variables, $like = null) {
|
|||||||
$dt_table .= $parsed_size[0] . ' ' . $parsed_size[1];
|
$dt_table .= $parsed_size[0] . ' ' . $parsed_size[1];
|
||||||
unset($parsed_size);
|
unset($parsed_size);
|
||||||
break;
|
break;
|
||||||
|
case PMA_ENGINE_DETAILS_TYPE_NUMERIC:
|
||||||
|
$dt_table .= PMA_formatNumber($mysql_vars[$var]) . ' ';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$dt_table .= htmlspecialchars($mysql_vars[$var]);
|
$dt_table .= htmlspecialchars($mysql_vars[$var]) . ' ';
|
||||||
}
|
}
|
||||||
$dt_table .= '</td>' . "\n"
|
$dt_table .= '</td>' . "\n"
|
||||||
. '</tr>' . "\n";
|
. '</tr>' . "\n";
|
||||||
|
Reference in New Issue
Block a user